diff --git a/MdeModulePkg/Library/DeviceManagerUiLib/DeviceManager.c b/MdeModulePkg/Library/DeviceManagerUiLib/DeviceManager.c index bfab83ac86..0de4e3c0c5 100644 --- a/MdeModulePkg/Library/DeviceManagerUiLib/DeviceManager.c +++ b/MdeModulePkg/Library/DeviceManagerUiLib/DeviceManager.c @@ -347,7 +347,6 @@ IsNeedAddNetworkMenu ( EFI_STATUS Status; UINTN EntryCount; UINTN Index; - EFI_HII_HANDLE HiiDeviceManagerHandle; EFI_HANDLE DriverHandle; EFI_HANDLE ControllerHandle; EFI_DEVICE_PATH_PROTOCOL *DevicePath; @@ -356,7 +355,6 @@ IsNeedAddNetworkMenu ( EFI_OPEN_PROTOCOL_INFORMATION_ENTRY *OpenInfoBuffer; BOOLEAN IsNeedAdd; - HiiDeviceManagerHandle = gDeviceManagerPrivate.HiiHandle; IsNeedAdd = FALSE; OpenInfoBuffer = NULL; if ((Handle == NULL) || (ItemCount == NULL)) {