powerpc/pseries: Remove write only variable in PCI DLPAR
authorMilton Miller <miltonm@bga.com>
Thu, 8 Jan 2009 02:19:49 +0000 (02:19 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Feb 2009 02:37:59 +0000 (13:37 +1100)
Since we never hotplug add an isa bus, we never need to set primary.
Delete this write-only variable.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/pci_dlpar.c

index 5e1ed3d60ee501a3a78b03b82aa90e0ba9ffd25b..ad152a0e39469da2af3ed2cece1dad816dbadc80 100644 (file)
@@ -137,11 +137,9 @@ EXPORT_SYMBOL_GPL(pcibios_add_pci_devices);
 struct pci_controller * __devinit init_phb_dynamic(struct device_node *dn)
 {
        struct pci_controller *phb;
-       int primary;
 
        pr_debug("PCI: Initializing new hotplug PHB %s\n", dn->full_name);
 
-       primary = list_empty(&hose_list);
        phb = pcibios_alloc_controller(dn);
        if (!phb)
                return NULL;