Patchwork [2/4] powerpc: remove write only variable

login
register
mail settings
Submitter Milton Miller
Date Jan. 8, 2009, 12:19 p.m.
Message ID <1231417189_141720@mercury.realtime.net>
Download mbox | patch
Permalink /patch/17347/
State Accepted, archived
Commit 7ce14a315db866605e6ac0b17fb33d10d7e49ab4
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Milton Miller - Jan. 8, 2009, 12:19 p.m.
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>
---
The reference to primary was removed in during a code move
92eb4602 (v2.6.16) when dlpar for p5ioc was tested.

Patch

Index: work.git/arch/powerpc/platforms/pseries/pci_dlpar.c
===================================================================
--- work.git.orig/arch/powerpc/platforms/pseries/pci_dlpar.c	2009-01-05 04:38:15.000000000 -0600
+++ work.git/arch/powerpc/platforms/pseries/pci_dlpar.c	2009-01-05 04:38:48.000000000 -0600
@@ -137,11 +137,9 @@  EXPORT_SYMBOL_GPL(pcibios_add_pci_device
 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;