diff options
Diffstat (limited to 'MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c')
-rw-r--r-- | MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c b/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c index e8c8ee7a4b..0e8aa34ad6 100644 --- a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c +++ b/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c @@ -1265,7 +1265,7 @@ DetectMediaParsingSenseKeys ( @param NumberOfSenseKeys The number of sense key
@retval EFI_DEVICE_ERROR Indicates that error occurs
- @retval EFI_SUCCESS Successfully to read capacity
+ @retval EFI_SUCCESS Successfully to read capacity or sense data is received.
**/
EFI_STATUS
@@ -1402,8 +1402,7 @@ ScsiDiskReadCapacity ( TRUE
);
if (!EFI_ERROR (Status)) {
- *NeedRetry = TRUE;
- return EFI_DEVICE_ERROR;
+ return EFI_SUCCESS;
}
if (!*NeedRetry) {
|