Revision: 18350
          http://sourceforge.net/p/edk2/code/18350
Author:   ydong10
Date:     2015-08-28 05:41:06 +0000 (Fri, 28 Aug 2015)
Log Message:
-----------
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 <[email protected]>
Reviewed-by: Eric Dong <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
    trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c
    trunk/edk2/MdeModulePkg/Universal/BdsDxe/BdsEntry.c

Modified: trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
===================================================================
--- trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c 2015-08-28 
04:51:21 UTC (rev 18349)
+++ trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c 2015-08-28 
05:41:06 UTC (rev 18350)
@@ -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 @@
   EFI_DEVICE_PATH_PROTOCOL  *UsbIoDevicePath;
   EFI_USB_IO_PROTOCOL       *UsbIo;
   UINTN                     Index;
-  UINTN                     UsbIoDevicePathSize;
   BOOLEAN                   Matched;
 
   ASSERT (UsbIoHandleCount != NULL);  
@@ -988,7 +988,6 @@
     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.

Modified: trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c
===================================================================
--- trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c 
2015-08-28 04:51:21 UTC (rev 18349)
+++ trunk/edk2/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c 
2015-08-28 05:41:06 UTC (rev 18350)
@@ -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 @@
   EFI_STATUS                 Status;
   UINTN                      NumHandles;
   EFI_HANDLE                 *DriverHealthHandles;
-  EFI_DRIVER_HEALTH_STATUS   HealthStatus;
   UINTN                      DriverHealthIndex;
   EFI_HANDLE                 *Handles;
   UINTN                      HandleCount;
@@ -313,8 +313,6 @@
   NumHandles              = 0;
   HandleCount             = 0;
 
-  HealthStatus = EfiDriverHealthStatusHealthy;
-
   Status = gBS->LocateHandleBuffer (
                   ByProtocol,
                   &gEfiDriverHealthProtocolGuid,

Modified: trunk/edk2/MdeModulePkg/Universal/BdsDxe/BdsEntry.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/BdsDxe/BdsEntry.c 2015-08-28 04:51:21 UTC 
(rev 18349)
+++ trunk/edk2/MdeModulePkg/Universal/BdsDxe/BdsEntry.c 2015-08-28 05:41:06 UTC 
(rev 18350)
@@ -5,6 +5,7 @@
   After DxeCore finish DXE phase, gEfiBdsArchProtocolGuid->BdsEntry will be 
invoked
   to enter BDS phase.
 
+(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
 Copyright (c) 2004 - 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
@@ -144,7 +145,6 @@
 {
   EFI_STATUS                            Status;
   EFI_BOOT_MANAGER_LOAD_OPTION          *BootOptions;
-  UINT16                                NonBlockNumber;
   UINTN                                 HandleCount;
   EFI_HANDLE                            *Handles;
   EFI_BLOCK_IO_PROTOCOL                 *BlkIo;
@@ -220,7 +220,6 @@
   //
   // Parse simple file system not based on block io
   //
-  NonBlockNumber = 0;
   gBS->LocateHandleBuffer (
          ByProtocol,
          &gEfiSimpleFileSystemProtocolGuid,


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to