Skip to content

Commit

Permalink
drivers/char/ip2: fix used-uninit'd bug
Browse files Browse the repository at this point in the history
Fix bug flagged by a variable-used-uninitialized warning.

[akpm@linux-foundation.org: coding-style]
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jeff Garzik authored and Linus Torvalds committed Oct 17, 2007
1 parent 1d7f502 commit 2b0172e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/char/ip2/ip2main.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,11 +619,7 @@ ip2_loadmain(int *iop, int *irqp, unsigned char *firmware, int firmsize)
ip2config.irq[i] = pci_dev_i->irq;
} else { // ann error
ip2config.addr[i] = 0;
if (status == PCIBIOS_DEVICE_NOT_FOUND) {
printk( KERN_ERR "IP2: PCI board %d not found\n", i );
} else {
printk( KERN_ERR "IP2: PCI error 0x%x \n", status );
}
printk(KERN_ERR "IP2: PCI board %d not found\n", i);
}
}
#else
Expand Down

0 comments on commit 2b0172e

Please sign in to comment.