summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-31 09:33:40 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-31 09:33:40 +0000
commit0d5df2aba72e7c8f2f172900fb7cfece27851a8f (patch)
treebca528610609ccbf91e94828eb2bb032461117c3
parent4fde0f15aae4489bd3973fb4698e6333c98c2b06 (diff)
downloadedk2-0d5df2aba72e7c8f2f172900fb7cfece27851a8f.zip
edk2-0d5df2aba72e7c8f2f172900fb7cfece27851a8f.tar.gz
edk2-0d5df2aba72e7c8f2f172900fb7cfece27851a8f.tar.bz2
MdeModulePkg/AtaBusDxe: remove a redundant error check
Signed-off-by: Tian Feng <feng.tian@intel.com> Reviewed-by: Li Elvin <elvin.li@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13902 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c b/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c
index 5e5cab6..d44359c 100644
--- a/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c
+++ b/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c
@@ -433,9 +433,7 @@ DiscoverAtaDevice (
// The command is issued successfully
//
Status = IdentifyAtaDevice (AtaDevice);
- if (!EFI_ERROR (Status)) {
- return Status;
- }
+ return Status;
}
} while (Retry-- > 0);