summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-15 18:36:41 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-19 17:00:55 -0500
commit7f4deffa7863e91dc8465e74809fa2155288e821 (patch)
tree8434382ef9b801c9b56d0fda68a377533a61b620
parentpowerpc/gen83xx/startup/bsprestart.c: Fix set but not used warning (diff)
downloadrtems-7f4deffa7863e91dc8465e74809fa2155288e821.tar.bz2
powerpc/mvme5500/pci/pcifinddevice.c: Remove unused variable
-rw-r--r--c/src/lib/libbsp/powerpc/mvme5500/pci/pcifinddevice.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/pci/pcifinddevice.c b/c/src/lib/libbsp/powerpc/mvme5500/pci/pcifinddevice.c
index ac2f050de7..493388a86b 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/pci/pcifinddevice.c
+++ b/c/src/lib/libbsp/powerpc/mvme5500/pci/pcifinddevice.c
@@ -1,13 +1,12 @@
-/* pcifinddevice.c
- *
- * Copyright 2001, Till Straumann <strauman@slac.stanford.edu>
- *
+/*
* find a particular PCI device
* (we assume, the firmware configured the PCI bus[es] for us)
- *
+ */
+
+/*
+ * Copyright 2001, Till Straumann <strauman@slac.stanford.edu>
*
* Kate Feng <feng1@bnl.gov>, modified it to support the mvme5500 board.
- *
*/
#include <bsp/pci.h>
@@ -19,10 +18,8 @@ static int BSP_pciDebug=0;
int BSP_pciFindDevicePrint(unsigned short vendorid, unsigned short deviceid,
int instance, int *pbus, int *pdev, int *pfun )
{
- int x;
-
BSP_pciDebug = 1;
- x=pci_find_device(vendorid, deviceid, instance, pbus, pdev, pfun );
+ (void) pci_find_device(vendorid, deviceid, instance, pbus, pdev, pfun );
BSP_pciDebug = 0;
return 0;