summaryrefslogtreecommitdiff
path: root/MdePkg/Library/DxeIoLibEsal/IoLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/DxeIoLibEsal/IoLib.c')
-rw-r--r--MdePkg/Library/DxeIoLibEsal/IoLib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/MdePkg/Library/DxeIoLibEsal/IoLib.c b/MdePkg/Library/DxeIoLibEsal/IoLib.c
index 7bc6ff1b61..81b28ecdd9 100644
--- a/MdePkg/Library/DxeIoLibEsal/IoLib.c
+++ b/MdePkg/Library/DxeIoLibEsal/IoLib.c
@@ -38,6 +38,8 @@ IoReadWorker (
SAL_RETURN_REGS ReturnReg;
UINT64 Data;
+ Data = 0;
+
ReturnReg = EsalCall (
EFI_EXTENDED_SAL_BASE_IO_SERVICES_PROTOCOL_GUID_LO,
EFI_EXTENDED_SAL_BASE_IO_SERVICES_PROTOCOL_GUID_HI,
@@ -119,6 +121,8 @@ MmioReadWorker (
SAL_RETURN_REGS ReturnReg;
UINT64 Data;
+ Data = 0;
+
ReturnReg = EsalCall (
EFI_EXTENDED_SAL_BASE_IO_SERVICES_PROTOCOL_GUID_LO,
EFI_EXTENDED_SAL_BASE_IO_SERVICES_PROTOCOL_GUID_HI,