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:
Olivier Martin 2014-07-01 09:25:30 +00:00 committed by oliviermartin
parent 6defc4db4c
commit 52659efb9c
1 changed files with 6 additions and 5 deletions

View File

@ -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;
}
//