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:
Ranbir Singh 2022-12-22 13:42:39 +05:30 committed by mergify[bot]
parent 558b37b49b
commit ae6e470252
1 changed files with 0 additions and 4 deletions

View File

@ -66,10 +66,6 @@ AhciS3GetEumeratePorts (
}
}
if (S3InitDevices == NULL) {
return 0;
}
//
// Only enumerate the ports that exist in the device list.
//