diff mbox

[edk2] Fix to a bug in AhciMode.c

Message ID CAFpQJXVf7wmNBBwkFHkePrVAMGSH6ZmRhXDWegMs1x4ZGA+=fA@mail.gmail.com
State New
Headers show

Commit Message

Ganapatrao Kulkarni June 3, 2014, 6 a.m. UTC
Hi All,

below patch fixes the bug which assigns the Status to error code on success.

thanks
Ganapat
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
diff mbox

Patch

diff --git a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
index 950b5da..ab18dcb 100644
--- a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
+++ b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
@@ -782,7 +782,6 @@  AhciPioTransfer (
       Offset = FisBaseAddr + EFI_AHCI_D2H_FIS_OFFSET;
       Status = AhciCheckMemSet (Offset, EFI_AHCI_FIS_TYPE_MASK,
EFI_AHCI_FIS_REGISTER_D2H, 0);
       if (!EFI_ERROR (Status)) {
-        Status = EFI_DEVICE_ERROR;
         break;
       }