Skip to contentSkip to conversation

drivers/char/ip2: fix used-uninit'd bug

PATCH New Jeff Garzik 1 participant 1 message Oct 13, 2007 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/char/ip2: fix used-uninit'd bug

Fix bug flagged by a variable-used-uninitialized warning.

---
 drivers/char/ip2/ip2main.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/char/ip2/ip2main.c +1 -5
index bd94d5f..2a566a0 100644
@@ -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