aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2007-07-31 03:39:41 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-31 18:39:44 -0400
commitad4a5bb885f1985732426f108d2fe36517dd1939 (patch)
treea61eec937963e9e6d5ab9a9db9e704349148fd3a /drivers/char
parentca76d2d8031fd8216eedadee77dfe009a63e4408 (diff)
ip2main warning fix
CONFIG_PCI=n: drivers/char/ip2/ip2main.c: In function `ip2_loadmain': drivers/char/ip2/ip2main.c:503: warning: unused variable `status' Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/ip2/ip2main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/ip2/ip2main.c b/drivers/char/ip2/ip2main.c
index 6005b5225772..8d74b8745e60 100644
--- a/drivers/char/ip2/ip2main.c
+++ b/drivers/char/ip2/ip2main.c
@@ -500,7 +500,6 @@ ip2_loadmain(int *iop, int *irqp, unsigned char *firmware, int firmsize)
500{ 500{
501 int i, j, box; 501 int i, j, box;
502 int err = 0; 502 int err = 0;
503 int status = 0;
504 static int loaded; 503 static int loaded;
505 i2eBordStrPtr pB = NULL; 504 i2eBordStrPtr pB = NULL;
506 int rc = -1; 505 int rc = -1;
@@ -588,6 +587,8 @@ ip2_loadmain(int *iop, int *irqp, unsigned char *firmware, int firmsize)
588 case PCI: 587 case PCI:
589#ifdef CONFIG_PCI 588#ifdef CONFIG_PCI
590 { 589 {
590 int status;
591
591 pci_dev_i = pci_get_device(PCI_VENDOR_ID_COMPUTONE, 592 pci_dev_i = pci_get_device(PCI_VENDOR_ID_COMPUTONE,
592 PCI_DEVICE_ID_COMPUTONE_IP2EX, pci_dev_i); 593 PCI_DEVICE_ID_COMPUTONE_IP2EX, pci_dev_i);
593 if (pci_dev_i != NULL) { 594 if (pci_dev_i != NULL) {