]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sparc64: Fix sparse warnings in pci_sun4v.c
authorDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2008 07:01:03 +0000 (00:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2008 07:01:03 +0000 (00:01 -0700)
'err' variable shadowing in pci_sun4v_probe()

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/pci_sun4v.c

index 97a77bcd255554abe9003c0ba3125d17a8573bfd..e86c73ec167b3ff66d887204f41630d71e7f2d08 100644 (file)
@@ -942,9 +942,9 @@ static int __devinit pci_sun4v_probe(struct of_device *op,
        dp = op->node;
 
        if (!hvapi_negotiated++) {
-               int err = sun4v_hvapi_register(HV_GRP_PCI,
-                                              vpci_major,
-                                              &vpci_minor);
+               err = sun4v_hvapi_register(HV_GRP_PCI,
+                                          vpci_major,
+                                          &vpci_minor);
 
                if (err) {
                        printk(KERN_ERR PFX "Could not register hvapi, "