audk/MdeModulePkg/Bus/Ata/AtaAtapiPassThru
Ranbir Singh d11968fcc5 MdeModulePkg/Bus/Ata/AtaAtapiPassThru: Fix UNUSED_VALUE Coverity issue
The return value stored in Status after call to SetDriveParameters
is not made of any use thereafter and hence it remains as UNUSED.

Based on Hao's findings (https://edk2.groups.io/g/devel/message/106844),
the successful execution of SetDriveParameters() is not mandatory for
initializing IDE mode of a hard disk device. Hence remove the 'Status'
assignment of the return value from SetDriveParameters() and instead add
error checks & DEBUG_WARN level messages within SetDriveParameters()
function after sending INIT_DRIVE_PARAM & SET_MULTIPLE_MODE ATA commands.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4204

Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Ranbir Singh <Ranbir.Singh3@Dell.com>
Signed-off-by: Ranbir Singh <rsingh@ventanamicro.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
2023-08-02 03:13:36 +00:00
..
AhciMode.c MdeModulePkg/Ahci: Skip retry for non-transient errors 2023-03-31 21:01:13 +00:00
AhciMode.h MdeModulePkg/Ahci: Skip retry for non-transient errors 2023-03-31 21:01:13 +00:00
AtaAtapiPassThru.c MdeModulePkg/Bus/Ata/AtaAtapiPassThru: Fix SIGN_EXTENSION Coverity issue 2023-08-02 03:13:36 +00:00
AtaAtapiPassThru.h MdeModulePkg: Consume new alignment-related macros 2023-04-01 23:11:44 +00:00
AtaAtapiPassThru.inf MdeModulePkg: Use configurable PCD for AHCI command retries 2022-09-13 02:51:27 +00:00
AtaAtapiPassThruDxe.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
AtaAtapiPassThruDxeExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
ComponentName.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
IdeMode.c MdeModulePkg/Bus/Ata/AtaAtapiPassThru: Fix UNUSED_VALUE Coverity issue 2023-08-02 03:13:36 +00:00
IdeMode.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00