Commit 2b0172e1 authored by Jeff Garzik's avatar Jeff Garzik Committed by Linus Torvalds

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: default avatarJeff Garzik <jgarzik@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1d7f5023
...@@ -619,11 +619,7 @@ ip2_loadmain(int *iop, int *irqp, unsigned char *firmware, int firmsize) ...@@ -619,11 +619,7 @@ ip2_loadmain(int *iop, int *irqp, unsigned char *firmware, int firmsize)
ip2config.irq[i] = pci_dev_i->irq; ip2config.irq[i] = pci_dev_i->irq;
} else { // ann error } else { // ann error
ip2config.addr[i] = 0; ip2config.addr[i] = 0;
if (status == PCIBIOS_DEVICE_NOT_FOUND) { printk(KERN_ERR "IP2: PCI board %d not found\n", i);
printk( KERN_ERR "IP2: PCI board %d not found\n", i );
} else {
printk( KERN_ERR "IP2: PCI error 0x%x \n", status );
}
} }
} }
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment