diff options
Diffstat (limited to 'EdkModulePkg/Universal/Console/Terminal/Dxe/Terminal.c')
-rw-r--r-- | EdkModulePkg/Universal/Console/Terminal/Dxe/Terminal.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/EdkModulePkg/Universal/Console/Terminal/Dxe/Terminal.c b/EdkModulePkg/Universal/Console/Terminal/Dxe/Terminal.c index 6621b64ace..45eb632e26 100644 --- a/EdkModulePkg/Universal/Console/Terminal/Dxe/Terminal.c +++ b/EdkModulePkg/Universal/Console/Terminal/Dxe/Terminal.c @@ -402,9 +402,9 @@ TerminalDriverBindingStart ( Mode->BaudRate,
Mode->ReceiveFifoDepth,
(UINT32) SerialInTimeOut,
- Mode->Parity,
+ (EFI_PARITY_TYPE) (Mode->Parity),
(UINT8) Mode->DataBits,
- Mode->StopBits
+ (EFI_STOP_BITS_TYPE) (Mode->StopBits)
);
if (EFI_ERROR (Status)) {
//
@@ -897,6 +897,7 @@ TerminalUpdateConsoleDevVariable ( VariableSize,
Variable
);
+ ASSERT_EFI_ERROR (Status);
gBS->FreePool (Variable);
return ;
@@ -1015,6 +1016,7 @@ TerminalRemoveConsoleDevVariable ( VariableSize,
NewVariable
);
+ ASSERT_EFI_ERROR (Status);
}
if (NewVariable != NULL) {
|