summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1999-01-12 01:42:43 +0000
committereivind <eivind@FreeBSD.org>1999-01-12 01:42:43 +0000
commit1eca420fde0d5de5c2888b6fe3e892a779207dae (patch)
tree83a0abea97226d2903f321ad32650564bf5bca81
parent5b2289537ea61eea587b837b7cd0b2603f1c3d78 (diff)
downloadFreeBSD-src-1eca420fde0d5de5c2888b6fe3e892a779207dae.zip
FreeBSD-src-1eca420fde0d5de5c2888b6fe3e892a779207dae.tar.gz
Remove unused variable.
-rw-r--r--sys/pci/xrpu.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/pci/xrpu.c b/sys/pci/xrpu.c
index 1338c95..25a90a4 100644
--- a/sys/pci/xrpu.c
+++ b/sys/pci/xrpu.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: xrpu.c,v 1.4 1998/11/08 12:39:06 dfr Exp $
+ * $Id: xrpu.c,v 1.5 1998/12/14 06:32:58 dillon Exp $
*
* A very simple device driver for PCI cards based on Xilinx 6200 series
* FPGA/RPU devices. Current Functionality is to allow you to open and
@@ -228,10 +228,12 @@ DATA_SET (pcidevice_set, xrpu_device);
static const char*
xrpu_probe (pcici_t tag, pcidi_t typea)
{
- int data = pci_conf_read(tag, PCI_CLASS_REG);
- u_int id = pci_conf_read(tag, PCI_ID_REG);
+ u_int id;
const char *vendor, *chip, *type;
+ (void)pci_conf_read(tag, PCI_CLASS_REG);
+ id = pci_conf_read(tag, PCI_ID_REG);
+
vendor = chip = type = 0;
if (id == 0x6216133e) {
OpenPOWER on IntegriCloud