summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Library/GenericBdsLib/BdsConsole.c')
-rw-r--r--MdeModulePkg/Library/GenericBdsLib/BdsConsole.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c b/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c
index 9f77553ec2..dacc9c22d1 100644
--- a/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c
+++ b/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c
@@ -40,7 +40,7 @@ IsNvNeed (
Ptr++;
}
- if ((*(Ptr-3) == 'D') && (*(Ptr-2) == 'e') && (*(Ptr-1) == 'v')) {
+ if ((*(Ptr - 3) == 'D') && (*(Ptr - 2) == 'e') && (*(Ptr - 1) == 'v')) {
return FALSE;
} else {
return TRUE;
@@ -261,7 +261,7 @@ BdsLibConnectConsoleVariable (
SafeFreePool(Instance);
} while (CopyOfDevicePath != NULL);
- gBS->FreePool (StartDevicePath);
+ SafeFreePool (StartDevicePath);
if (!DeviceExist) {
return EFI_NOT_FOUND;
@@ -340,7 +340,6 @@ BdsLibConnectAllConsoles (
}
-
/**
This function will connect console device base on the console
device variable ConIn, ConOut and ErrOut.