mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-10 07:14:24 +02:00
MdeModulePkg/TerminalDxe: Remove unnecessary NULL pointer check
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Star Zeng <star.zeng@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
This commit is contained in:
parent
b7cf1c0747
commit
0d8b3f81ac
@ -1356,19 +1356,14 @@ TerminalDriverBindingStop (
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (TerminalDevice->ControllerNameTable != NULL) {
|
|
||||||
FreeUnicodeStringTable (TerminalDevice->ControllerNameTable);
|
FreeUnicodeStringTable (TerminalDevice->ControllerNameTable);
|
||||||
}
|
|
||||||
|
|
||||||
StopTerminalStateMachine (TerminalDevice);
|
StopTerminalStateMachine (TerminalDevice);
|
||||||
gBS->CloseEvent (TerminalDevice->SimpleInput.WaitForKey);
|
gBS->CloseEvent (TerminalDevice->SimpleInput.WaitForKey);
|
||||||
gBS->CloseEvent (TerminalDevice->SimpleInputEx.WaitForKeyEx);
|
gBS->CloseEvent (TerminalDevice->SimpleInputEx.WaitForKeyEx);
|
||||||
gBS->CloseEvent (TerminalDevice->KeyNotifyProcessEvent);
|
gBS->CloseEvent (TerminalDevice->KeyNotifyProcessEvent);
|
||||||
TerminalFreeNotifyList (&TerminalDevice->NotifyList);
|
TerminalFreeNotifyList (&TerminalDevice->NotifyList);
|
||||||
FreePool (TerminalDevice->DevicePath);
|
FreePool (TerminalDevice->DevicePath);
|
||||||
if (TerminalDevice->TerminalConsoleModeData != NULL) {
|
|
||||||
FreePool (TerminalDevice->TerminalConsoleModeData);
|
FreePool (TerminalDevice->TerminalConsoleModeData);
|
||||||
}
|
|
||||||
FreePool (TerminalDevice);
|
FreePool (TerminalDevice);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user