Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7425ada2d07b0bdc082f34069eadbbe5a8e465d2
Commit:     7425ada2d07b0bdc082f34069eadbbe5a8e465d2
Parent:     9430d374bd4b099734a63c3699a128fe58e0bed3
Author:     Kyle McMartin <[EMAIL PROTECTED]>
AuthorDate: Fri Oct 19 21:41:33 2007 -0700
Committer:  Kyle McMartin <[EMAIL PROTECTED]>
CommitDate: Fri Oct 19 21:41:33 2007 -0700

    [PARISC] Zap unused variable warnings in pci.c
    
    'bus' was basically useless and 'hba' is only applicable on
    64bit. Sigh, there's got to be a cleaner way to do this...
    
    Signed-off-by: Kyle McMartin <[EMAIL PROTECTED]>
---
 arch/parisc/kernel/pci.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/parisc/kernel/pci.c b/arch/parisc/kernel/pci.c
index 8263d49..507d0ac 100644
--- a/arch/parisc/kernel/pci.c
+++ b/arch/parisc/kernel/pci.c
@@ -198,8 +198,9 @@ void __init pcibios_init_bus(struct pci_bus *bus)
 void __devinit pcibios_resource_to_bus(struct pci_dev *dev,
                struct pci_bus_region *region, struct resource *res)
 {
-       struct pci_bus *bus = dev->bus;
-       struct pci_hba_data *hba = HBA_DATA(bus->bridge->platform_data);
+#ifdef CONFIG_64BIT
+       struct pci_hba_data *hba = HBA_DATA(dev->bus->bridge->platform_data);
+#endif
 
        if (res->flags & IORESOURCE_IO) {
                /*
@@ -218,7 +219,7 @@ void __devinit pcibios_resource_to_bus(struct pci_dev *dev,
        }
 
        DBG_RES("pcibios_resource_to_bus(%02x %s [%lx,%lx])\n",
-               bus->number, res->flags & IORESOURCE_IO ? "IO" : "MEM",
+               dev->bus->number, res->flags & IORESOURCE_IO ? "IO" : "MEM",
                region->start, region->end);
 }
 
@@ -226,8 +227,7 @@ void pcibios_bus_to_resource(struct pci_dev *dev, struct 
resource *res,
                              struct pci_bus_region *region)
 {
 #ifdef CONFIG_64BIT
-       struct pci_bus *bus = dev->bus;
-       struct pci_hba_data *hba = HBA_DATA(bus->bridge->platform_data);
+       struct pci_hba_data *hba = HBA_DATA(dev->bus->bridge->platform_data);
 #endif
 
        if (res->flags & IORESOURCE_MEM) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to