From 4317b4824bc881fe6079d04b7ee5b0f6bddf62ca Mon Sep 17 00:00:00 2001 From: Ranbir Singh Date: Mon, 17 Jul 2023 19:40:08 +0800 Subject: MdeModulePkg/Bus/Pci/NvmExpressPei: Fix DEADCODE Coverity issue The code can reach line 65 only through the else path above at line 53. The else path already has the same NULL check at line 55 and hence the duplicate code lines are totally redundant which can be deleted. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4220 Cc: Hao A Wu Cc: Ray Ni Co-authored-by: Veeresh Sangolli Signed-off-by: Ranbir Singh Signed-off-by: Ranbir Singh Reviewed-by: Hao A Wu --- MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiS3.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiS3.c b/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiS3.c index d704c62eaa..1d03d49640 100644 --- a/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiS3.c +++ b/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiS3.c @@ -62,10 +62,6 @@ NvmeS3SkipThisController ( } } - if (S3InitDevices == NULL) { - return Skip; - } - // // Only need to initialize the controllers that exist in the device list. // -- cgit v1.2.3