summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-04-01 16:15:37 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-05-23 13:49:41 +0800
commitcf81d5a680522259d2fdabcdb1bc4168e688de3f (patch)
treed91b108c603f7bf330b5734324856c1526caf172
parentc745144407fa76e6a6ca9146f41397f292d25a94 (diff)
downloadedk2-cf81d5a680522259d2fdabcdb1bc4168e688de3f.tar.gz
edk2-cf81d5a680522259d2fdabcdb1bc4168e688de3f.tar.bz2
edk2-cf81d5a680522259d2fdabcdb1bc4168e688de3f.zip
MdeModulePkg/PciBus: use better name for local variables.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com>
-rw-r--r--MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c
index e12d59f1d0..560f8d8a75 100644
--- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c
+++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c
@@ -1,7 +1,7 @@
/** @file
PCI resouces support functions implemntation for PCI Bus module.
-Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2016, 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
which accompanies this distribution. The full text of the license may be found at
@@ -1052,11 +1052,11 @@ DegradeResource (
IN PCI_RESOURCE_NODE *PMem64Node
)
{
- PCI_IO_DEVICE *Temp;
+ PCI_IO_DEVICE *PciIoDevice;
LIST_ENTRY *ChildDeviceLink;
LIST_ENTRY *ChildNodeLink;
LIST_ENTRY *NextChildNodeLink;
- PCI_RESOURCE_NODE *TempNode;
+ PCI_RESOURCE_NODE *ResourceNode;
//
// If any child device has both option ROM and 64-bit BAR, degrade its PMEM64/MEM64
@@ -1064,17 +1064,17 @@ DegradeResource (
//
ChildDeviceLink = Bridge->ChildList.ForwardLink;
while (ChildDeviceLink != NULL && ChildDeviceLink != &Bridge->ChildList) {
- Temp = PCI_IO_DEVICE_FROM_LINK (ChildDeviceLink);
- if (Temp->RomSize != 0) {
+ PciIoDevice = PCI_IO_DEVICE_FROM_LINK (ChildDeviceLink);
+ if (PciIoDevice->RomSize != 0) {
if (!IsListEmpty (&Mem64Node->ChildList)) {
ChildNodeLink = Mem64Node->ChildList.ForwardLink;
while (ChildNodeLink != &Mem64Node->ChildList) {
- TempNode = RESOURCE_NODE_FROM_LINK (ChildNodeLink);
+ ResourceNode = RESOURCE_NODE_FROM_LINK (ChildNodeLink);
NextChildNodeLink = ChildNodeLink->ForwardLink;
- if (TempNode->PciDev == Temp) {
+ if (ResourceNode->PciDev == PciIoDevice) {
RemoveEntryList (ChildNodeLink);
- InsertResourceNode (Mem32Node, TempNode);
+ InsertResourceNode (Mem32Node, ResourceNode);
}
ChildNodeLink = NextChildNodeLink;
}
@@ -1083,12 +1083,12 @@ DegradeResource (
if (!IsListEmpty (&PMem64Node->ChildList)) {
ChildNodeLink = PMem64Node->ChildList.ForwardLink;
while (ChildNodeLink != &PMem64Node->ChildList) {
- TempNode = RESOURCE_NODE_FROM_LINK (ChildNodeLink);
+ ResourceNode = RESOURCE_NODE_FROM_LINK (ChildNodeLink);
NextChildNodeLink = ChildNodeLink->ForwardLink;
- if (TempNode->PciDev == Temp) {
+ if (ResourceNode->PciDev == PciIoDevice) {
RemoveEntryList (ChildNodeLink);
- InsertResourceNode (PMem32Node, TempNode);
+ InsertResourceNode (PMem32Node, ResourceNode);
}
ChildNodeLink = NextChildNodeLink;
}