summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Ata
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 /MdeModulePkg/Bus/Ata
parent4fde0f15aae4489bd3973fb4698e6333c98c2b06 (diff)
downloadedk2-platforms-0d5df2aba72e7c8f2f172900fb7cfece27851a8f.tar.xz
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
Diffstat (limited to 'MdeModulePkg/Bus/Ata')
-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 5e5cab6575..d44359cfcf 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);