mirror of https://github.com/acidanthera/audk.git
EmbeddedPkg/SerialDxe: Fixed the mixture of RETURN_STATUS and EFI_STATUS
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15607 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
6defc4db4c
commit
52659efb9c
|
@ -162,12 +162,13 @@ SerialSetAttributes (
|
|||
IN EFI_STOP_BITS_TYPE StopBits
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_TPL Tpl;
|
||||
RETURN_STATUS ReturnStatus;
|
||||
EFI_STATUS Status;
|
||||
EFI_TPL Tpl;
|
||||
|
||||
Status = SerialPortSetAttributes (&BaudRate, &ReceiveFifoDepth, &Timeout, &Parity, &DataBits, &StopBits);
|
||||
if (EFI_ERROR(Status)) {
|
||||
return Status;
|
||||
ReturnStatus = SerialPortSetAttributes (&BaudRate, &ReceiveFifoDepth, &Timeout, &Parity, &DataBits, &StopBits);
|
||||
if (RETURN_ERROR (ReturnStatus)) {
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue