From: Jeff Garzik Date: Wed, 17 Oct 2007 06:30:31 +0000 (-0700) Subject: drivers/char/ip2: fix used-uninit'd bug X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b0172e1c6e6aea0a4efcfaaab38d4a02046f45a;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) 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