]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/AtaBusDxe: remove a redundant error check
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 31 Oct 2012 09:33:40 +0000 (09:33 +0000)
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 31 Oct 2012 09:33:40 +0000 (09:33 +0000)
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

MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c

index 5e5cab6575e6fd3fdba094754ee481f5d74575ec..d44359cfcf99d1a7cdd15bd58f9fd5c4d2141bb2 100644 (file)
@@ -433,9 +433,7 @@ DiscoverAtaDevice (
       // The command is issued successfully\r
       //\r
       Status = IdentifyAtaDevice (AtaDevice);\r
-      if (!EFI_ERROR (Status)) {\r
-        return Status;\r
-      }\r
+      return Status;\r
     }\r
   } while (Retry-- > 0);\r
 \r