mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
drivers/char/ip2: fix used-uninit'd bug
Fix bug flagged by a variable-used-uninitialized warning. [[email protected]: coding-style] Signed-off-by: Jeff Garzik <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1d7f502380
commit
2b0172e1c6
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue