mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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> |
||
|---|---|---|
| .. | ||
| EmmcBlockIoPei | ||
| EmmcDxe | ||
| SdBlockIoPei | ||
| SdDxe | ||