summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRanbir Singh <Ranbir.Singh3@Dell.com>2022-12-22 13:42:39 +0530
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-02-02 03:50:28 +0000
commitae6e470252d9312dce20d0b21e7f622c4ca9ad0a (patch)
treefbac4f4cc4289d9eea48efc616df8e983ad247a3
parent558b37b49b2196e82f2e8f9da7939f755343e94a (diff)
downloadedk2-ae6e470252d9312dce20d0b21e7f622c4ca9ad0a.tar.gz
edk2-ae6e470252d9312dce20d0b21e7f622c4ca9ad0a.tar.bz2
edk2-ae6e470252d9312dce20d0b21e7f622c4ca9ad0a.zip
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>
-rw-r--r--MdeModulePkg/Bus/Ata/AhciPei/AhciPeiS3.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/MdeModulePkg/Bus/Ata/AhciPei/AhciPeiS3.c b/MdeModulePkg/Bus/Ata/AhciPei/AhciPeiS3.c
index 42e4203a22..6013af858d 100644
--- a/MdeModulePkg/Bus/Ata/AhciPei/AhciPeiS3.c
+++ b/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.
//