]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c
MdeModulePkg: Source fixes and cleanup for ARMGCC compiles
[mirror_edk2.git] / MdeModulePkg / Library / BaseSerialPortLib16550 / BaseSerialPortLib16550.c
index 0ade9b231104748d8f5d11d589c84969941dddde..abf4f8f26a8e58e9e5c414fdb1da3ccda20f59dc 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
   16550 UART Serial Port library functions\r
 \r
+  (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
   Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -184,7 +185,6 @@ GetSerialRegisterBase (
   )\r
 {\r
   UINTN                 PciLibAddress;\r
-  UINTN                 PrimaryBusNumber;\r
   UINTN                 BusNumber;\r
   UINTN                 SubordinateBusNumber;\r
   UINT32                ParentIoBase;\r
@@ -233,7 +233,6 @@ GetSerialRegisterBase (
     //\r
     // Retrieve and verify the bus numbers in the PCI to PCI Bridge\r
     //\r
-    PrimaryBusNumber     = PciRead8 (PciLibAddress + PCI_BRIDGE_PRIMARY_BUS_REGISTER_OFFSET);\r
     BusNumber            = PciRead8 (PciLibAddress + PCI_BRIDGE_SECONDARY_BUS_REGISTER_OFFSET);\r
     SubordinateBusNumber = PciRead8 (PciLibAddress + PCI_BRIDGE_SUBORDINATE_BUS_REGISTER_OFFSET);\r
     if (BusNumber == 0 || BusNumber > SubordinateBusNumber) {\r