Explorar el Código

MdeModulePkg/Bus/Ata/AhciPei: Fix DEADCODE Coverity issue

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4201

The code can reach line 69 only through the else path above at line 57.
The else path already has the same NULL check at line 59 and hence the
duplicate code lines are totally redundant which can be deleted.

Signed-off-by: Ranbir Singh <Ranbir.Singh3@Dell.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Ranbir Singh hace 1 año
padre
commit
ae6e470252
Se han modificado 1 ficheros con 0 adiciones y 4 borrados
  1. 0 4
      MdeModulePkg/Bus/Ata/AhciPei/AhciPeiS3.c

+ 0 - 4
MdeModulePkg/Bus/Ata/AhciPei/AhciPeiS3.c

@@ -66,10 +66,6 @@ AhciS3GetEumeratePorts (
     }
   }
 
-  if (S3InitDevices == NULL) {
-    return 0;
-  }
-
   //
   // Only enumerate the ports that exist in the device list.
   //