X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FLibrary%2FBaseSerialPortLib16550%2FBaseSerialPortLib16550.c;h=abf4f8f26a8e58e9e5c414fdb1da3ccda20f59dc;hp=0ade9b231104748d8f5d11d589c84969941dddde;hb=35f910f08b58e978bc9251872635075d6f422e48;hpb=40a0f8cb78cb6728039465b92d6808d262d2d110 diff --git a/MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c b/MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c index 0ade9b2311..abf4f8f26a 100644 --- a/MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c +++ b/MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c @@ -1,6 +1,7 @@ /** @file 16550 UART Serial Port library functions + (C) Copyright 2014 Hewlett-Packard Development Company, L.P.
Copyright (c) 2006 - 2014, 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 @@ -184,7 +185,6 @@ GetSerialRegisterBase ( ) { UINTN PciLibAddress; - UINTN PrimaryBusNumber; UINTN BusNumber; UINTN SubordinateBusNumber; UINT32 ParentIoBase; @@ -233,7 +233,6 @@ GetSerialRegisterBase ( // // Retrieve and verify the bus numbers in the PCI to PCI Bridge // - PrimaryBusNumber = PciRead8 (PciLibAddress + PCI_BRIDGE_PRIMARY_BUS_REGISTER_OFFSET); BusNumber = PciRead8 (PciLibAddress + PCI_BRIDGE_SECONDARY_BUS_REGISTER_OFFSET); SubordinateBusNumber = PciRead8 (PciLibAddress + PCI_BRIDGE_SUBORDINATE_BUS_REGISTER_OFFSET); if (BusNumber == 0 || BusNumber > SubordinateBusNumber) {