Skip to content

Commit

Permalink
RedfishPkg: PlatformHostInterfaceBmcUsbNicLib: fix compilation warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ghbaccount authored and mergify[bot] committed Sep 5, 2024
1 parent c9a59fa commit 7acd8c9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7acd8c9

Please sign in to comment.