fix Klocwork issues
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7926 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -353,11 +353,13 @@ ErrorExit:
|
||||
// Since there will be no timer handler for keyboard input any more,
|
||||
// exhaust input data just in case there is still keyboard data left
|
||||
//
|
||||
Status1 = EFI_SUCCESS;
|
||||
while (!EFI_ERROR (Status1)) {
|
||||
Status1 = KeyboardRead (ConsoleIn, &Data);;
|
||||
if (ConsoleIn != NULL) {
|
||||
Status1 = EFI_SUCCESS;
|
||||
while (!EFI_ERROR (Status1)) {
|
||||
Status1 = KeyboardRead (ConsoleIn, &Data);;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (ConsoleIn != NULL) {
|
||||
gBS->FreePool (ConsoleIn);
|
||||
}
|
||||
|
Reference in New Issue
Block a user