mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 23:50:53 +07:00
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>
This commit is contained in:
parent
1d7f502380
commit
2b0172e1c6
@ -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 New Issue
Block a user