mirror of https://github.com/acidanthera/audk.git
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:
parent
4fb69c2bee
commit
4317b4824b
|
@ -62,10 +62,6 @@ NvmeS3SkipThisController (
|
|||
}
|
||||
}
|
||||
|
||||
if (S3InitDevices == NULL) {
|
||||
return Skip;
|
||||
}
|
||||
|
||||
//
|
||||
// Only need to initialize the controllers that exist in the device list.
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue