diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-10-17 02:30:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:43:01 -0400 |
commit | 2b0172e1c6e6aea0a4efcfaaab38d4a02046f45a (patch) | |
tree | 1f1bf9304b5c7254fa5270cd9a3dd5eda9598a5e /drivers/char/ip2 | |
parent | 1d7f502380072542a38086588b0f200c9555ed4e (diff) |
drivers/char/ip2: fix used-uninit'd bug
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>
Diffstat (limited to 'drivers/char/ip2')
-rw-r--r-- | drivers/char/ip2/ip2main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/char/ip2/ip2main.c b/drivers/char/ip2/ip2main.c index 3300ba3c8588..2124dce38f2b 100644 --- a/drivers/char/ip2/ip2main.c +++ b/drivers/char/ip2/ip2main.c | |||
@@ -619,11 +619,7 @@ ip2_loadmain(int *iop, int *irqp, unsigned char *firmware, int firmsize) | |||
619 | ip2config.irq[i] = pci_dev_i->irq; | 619 | ip2config.irq[i] = pci_dev_i->irq; |
620 | } else { // ann error | 620 | } else { // ann error |
621 | ip2config.addr[i] = 0; | 621 | ip2config.addr[i] = 0; |
622 | if (status == PCIBIOS_DEVICE_NOT_FOUND) { | 622 | printk(KERN_ERR "IP2: PCI board %d not found\n", i); |
623 | printk( KERN_ERR "IP2: PCI board %d not found\n", i ); | ||
624 | } else { | ||
625 | printk( KERN_ERR "IP2: PCI error 0x%x \n", status ); | ||
626 | } | ||
627 | } | 623 | } |
628 | } | 624 | } |
629 | #else | 625 | #else |