mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
558b37b49b
commit
ae6e470252
|
@ -66,10 +66,6 @@ AhciS3GetEumeratePorts (
|
|||
}
|
||||
}
|
||||
|
||||
if (S3InitDevices == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
//
|
||||
// Only enumerate the ports that exist in the device list.
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue