summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-03-24 07:28:17 +0100
committerHao Wu <hao.a.wu@intel.com>2016-07-14 15:51:22 +0800
commitf7486cd9ab89ec68fc3bd34c23b4a4b9c8851718 (patch)
treeacd812868567b20a56ffe92fe64ad25231eeada9 /MdeModulePkg
parentba8f62263e80511143987d1993edcb0f082134b5 (diff)
downloadedk2-platforms-f7486cd9ab89ec68fc3bd34c23b4a4b9c8851718.tar.xz
MdeModulePkg/PciHostBridgeDxe: remove unused but set variables
Remove variables that are declared, assigned but never referenced. This fixes a warning emitted by GCC when -Wunused-but-set-variable is in effect. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> (cherry picked from commit 3a9dcf9f28ef6cd62c7eaade706adbe435262fa8)
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c
index d5da6995af..50f1407e7a 100644
--- a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c
+++ b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c
@@ -628,7 +628,6 @@ NotifyPhase (
PCI_ROOT_BRIDGE_INSTANCE *RootBridge;
LIST_ENTRY *Link;
EFI_PHYSICAL_ADDRESS BaseAddress;
- UINT64 AddrLen;
UINTN BitsOfAlignment;
UINT64 Alignment;
EFI_STATUS Status;
@@ -735,7 +734,6 @@ NotifyPhase (
ASSERT (Index < TypeMax);
ResNodeHandled[Index] = TRUE;
- AddrLen = RootBridge->ResAllocNode[Index].Length;
Alignment = RootBridge->ResAllocNode[Index].Alignment;
BitsOfAlignment = LowBitSet64 (Alignment + 1);
BaseAddress = MAX_UINT64;
@@ -1110,9 +1108,6 @@ SetBusNumbers (
PCI_ROOT_BRIDGE_INSTANCE *RootBridge;
EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *Descriptor;
EFI_ACPI_END_TAG_DESCRIPTOR *End;
- UINTN BusStart;
- UINTN BusEnd;
- UINTN BusLen;
if (Configuration == NULL) {
return EFI_INVALID_PARAMETER;
@@ -1138,9 +1133,6 @@ SetBusNumbers (
) {
RootBridge = ROOT_BRIDGE_FROM_LINK (Link);
if (RootBridgeHandle == RootBridge->Handle) {
- BusStart = (UINTN) Descriptor->AddrRangeMin;
- BusLen = (UINTN) Descriptor->AddrLen;
- BusEnd = BusStart + BusLen - 1;
if (Descriptor->AddrLen == 0) {
return EFI_INVALID_PARAMETER;