Fix incorrect return status in InitializeDebugPortDriver() & DebugPortSupported().

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tian, Feng <feng.tian@intel.com>
Reviewed-by: Li, Elvin <elvin.li@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15217 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Tian, Feng 2014-02-11 08:00:13 +00:00 committed by erictian
parent b80eed7d6d
commit 3038da1b93
1 changed files with 8 additions and 8 deletions

View File

@ -142,7 +142,7 @@ InitializeDebugPortDriver (
);
ASSERT_EFI_ERROR (Status);
return EFI_SUCCESS;
return Status;
}
/**
@ -241,14 +241,14 @@ DebugPortSupported (
return Status;
}
gBS->CloseProtocol (
ControllerHandle,
&gEfiSerialIoProtocolGuid,
This->DriverBindingHandle,
ControllerHandle
);
Status = gBS->CloseProtocol (
ControllerHandle,
&gEfiSerialIoProtocolGuid,
This->DriverBindingHandle,
ControllerHandle
);
return EFI_SUCCESS;
return Status;
}
/**