edk2/MdeModulePkg/Bus/Sd
Tuan Phan 9044d2b33d MdeModulePkg: SdBlockIoPei: Fix uninitialized variable warnings
In SdPeimIdentification(), the compiler may inline SdPeimHcRwMmio()
because it only performs simple MMIO reads and writes. When inlined, the
fourth argument can appear to follow multiple control-flow paths
(MMIO read versus MMIO write), which may cause the compiler to report
a potential uninitialized variable warning when the value is used
later if it was not initialized up front.

Add an explicit Status check, consistent with other code in this file,
to make the control flow explicit and eliminate the compiler warning.

Signed-off-by: Tuan Phan <tuan.phan@oss.qualcomm.com>
2026-06-24 14:49:50 +00:00
..
EmmcBlockIoPei MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
EmmcDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
SdBlockIoPei MdeModulePkg: SdBlockIoPei: Fix uninitialized variable warnings 2026-06-24 14:49:50 +00:00
SdDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00