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 <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Co-authored-by: Veeresh Sangolli <veeresh.sangolli@dellteam.com>
Signed-off-by: Ranbir Singh <Ranbir.Singh3@Dell.com>
Signed-off-by: Ranbir Singh <rsingh@ventanamicro.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
This commit is contained in:
Ranbir Singh 2023-07-17 19:40:08 +08:00 committed by mergify[bot]
parent 4fb69c2bee
commit 4317b4824b
1 changed files with 0 additions and 4 deletions

View File

@ -62,10 +62,6 @@ NvmeS3SkipThisController (
} }
} }
if (S3InitDevices == NULL) {
return Skip;
}
// //
// Only need to initialize the controllers that exist in the device list. // Only need to initialize the controllers that exist in the device list.
// //