Code scrub for GenericBdsLib

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5545 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2
2008-07-22 04:17:51 +00:00
parent d0b494edf2
commit ec8cd35c80
13 changed files with 162 additions and 282 deletions

View File

@@ -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.