diff options
author | Mike Maslenkin <mike.maslenkin@gmail.com> | 2024-08-09 02:48:34 +0300 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-05 03:40:45 +0000 |
commit | 7acd8c9bd25de8e6af84d1696a8f963eac582089 (patch) | |
tree | 85e8879f4614321a538c0229013011bbb713bee6 /RedfishPkg | |
parent | c9a59facd85f75bd30a6b9c0cccd789bc34402b1 (diff) | |
download | edk2-7acd8c9bd25de8e6af84d1696a8f963eac582089.tar.gz edk2-7acd8c9bd25de8e6af84d1696a8f963eac582089.tar.bz2 edk2-7acd8c9bd25de8e6af84d1696a8f963eac582089.zip |
RedfishPkg: PlatformHostInterfaceBmcUsbNicLib: fix compilation warning
PlatformHostInterfaceBmcUsbNicLib.c: In function 'CheckBmcUsbNic':
PlatformHostInterfaceBmcUsbNicLib.c:1253:14: error: error: 'HandleBuffer'
may be used uninitialized in this function [-Werror=maybe-uninitialized]
Status =
CheckBmcUsbNicOnHandles (BufferSize/sizeof (EFI_HANDLE), HandleBuffer);
cc1: all warnings being treated as errors
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Diffstat (limited to 'RedfishPkg')
-rw-r--r-- | RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c b/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c index c73e76df57..6cb5a4b5a1 100644 --- a/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c +++ b/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInterfaceBmcUsbNicLib.c @@ -1202,6 +1202,7 @@ CheckBmcUsbNic ( DEBUG ((DEBUG_MANAGEABILITY, "%a: Entry, the registration key - 0x%08x.\n", __func__, Registration));
Handle = NULL;
+ HandleBuffer = NULL;
Status = EFI_SUCCESS;
do {
|