From cf81d5a680522259d2fdabcdb1bc4168e688de3f Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Fri, 1 Apr 2016 16:15:37 +0800 Subject: [PATCH] MdeModulePkg/PciBus: use better name for local variables. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jeff Fan Tested-by: Laszlo Ersek --- .../Bus/Pci/PciBusDxe/PciResourceSupport.c | 22 +++++++++---------- 1 file 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.
+Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
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; } -- 2.39.2