diff --git a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c index 4928ed570b..f74e5ca373 100644 --- a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c +++ b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c @@ -1949,7 +1949,7 @@ AtaPacketReadWrite ( // Status = DRQReady2 (PciIo, IdeRegisters, Timeout); if (EFI_ERROR (Status)) { - return CheckStatusRegister (PciIo, IdeRegisters); + return Status; } //