summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/UefiBootManagerLib
diff options
context:
space:
mode:
authorSunny Wang <sunnywang@hpe.com>2015-08-28 05:41:06 +0000
committerydong10 <ydong10@Edk2>2015-08-28 05:41:06 +0000
commit4982ea57d973e25ded82841fe0fe351f173eac65 (patch)
tree03e36e35ecca3efe041b57daeb8b19ecf293ed31 /MdeModulePkg/Library/UefiBootManagerLib
parentbec1e0bdf94edf2b5d6a11aed5268ea6b4525c73 (diff)
downloadedk2-platforms-4982ea57d973e25ded82841fe0fe351f173eac65.tar.xz
MdeModulePkg: Remove unused variables from both UefiBootManagerLib and BdsDxe to fix GCC build.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sunny Wang <sunnywang@hpe.com> Reviewed-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18350 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/UefiBootManagerLib')
-rw-r--r--MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c3
-rw-r--r--MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c4
2 files changed, 2 insertions, 5 deletions
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
index f68c25e219..8f14cf6d3f 100644
--- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
+++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
@@ -1,6 +1,7 @@
/** @file
Library functions which relates with booting.
+(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -956,7 +957,6 @@ BmFindUsbDevice (
EFI_DEVICE_PATH_PROTOCOL *UsbIoDevicePath;
EFI_USB_IO_PROTOCOL *UsbIo;
UINTN Index;
- UINTN UsbIoDevicePathSize;
BOOLEAN Matched;
ASSERT (UsbIoHandleCount != NULL);
@@ -988,7 +988,6 @@ BmFindUsbDevice (
UsbIoDevicePath = DevicePathFromHandle (UsbIoHandles[Index]);
Matched = FALSE;
if (!EFI_ERROR (Status) && (UsbIoDevicePath != NULL)) {
- UsbIoDevicePathSize = GetDevicePathSize (UsbIoDevicePath) - END_DEVICE_PATH_LENGTH;
//
// Compare starting part of UsbIoHandle's device path with ParentDevicePath.
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c b/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c
index b3f57f56fa..bffbedaf84 100644
--- a/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c
+++ b/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c
@@ -1,6 +1,7 @@
/** @file
Library functions which relates with driver health.
+(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -295,7 +296,6 @@ EfiBootManagerGetDriverHealthInfo (
EFI_STATUS Status;
UINTN NumHandles;
EFI_HANDLE *DriverHealthHandles;
- EFI_DRIVER_HEALTH_STATUS HealthStatus;
UINTN DriverHealthIndex;
EFI_HANDLE *Handles;
UINTN HandleCount;
@@ -313,8 +313,6 @@ EfiBootManagerGetDriverHealthInfo (
NumHandles = 0;
HandleCount = 0;
- HealthStatus = EfiDriverHealthStatusHealthy;
-
Status = gBS->LocateHandleBuffer (
ByProtocol,
&gEfiDriverHealthProtocolGuid,