Skip to content

Commit

Permalink
sparc64: Fix sparse warnings in pci_sun4v.c
Browse files Browse the repository at this point in the history
'err' variable shadowing in pci_sun4v_probe()

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 12, 2008
1 parent 77d10d0 commit 8d2aec5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/sparc64/kernel/pci_sun4v.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, "
Expand Down

0 comments on commit 8d2aec5

Please sign in to comment.