diff options
author | Olivier Martin <olivier.martin@arm.com> | 2014-07-01 09:25:30 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-07-01 09:25:30 +0000 |
commit | 52659efb9c37066f6bf5f001374dd1a115cc1455 (patch) | |
tree | 0a2efff4368bde2cb0df3739862dafe58fe7ba16 /EmbeddedPkg/SerialDxe | |
parent | 6defc4db4c508adc52d7b5273ef22020b89e0ab5 (diff) | |
download | edk2-52659efb9c37066f6bf5f001374dd1a115cc1455.zip edk2-52659efb9c37066f6bf5f001374dd1a115cc1455.tar.gz edk2-52659efb9c37066f6bf5f001374dd1a115cc1455.tar.bz2 |
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
Diffstat (limited to 'EmbeddedPkg/SerialDxe')
-rw-r--r-- | EmbeddedPkg/SerialDxe/SerialIo.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/EmbeddedPkg/SerialDxe/SerialIo.c b/EmbeddedPkg/SerialDxe/SerialIo.c index 5a20e3c..0bdf4b9 100644 --- a/EmbeddedPkg/SerialDxe/SerialIo.c +++ b/EmbeddedPkg/SerialDxe/SerialIo.c @@ -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;
}
//
|