summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-20 17:21:43 +0000
committerphk <phk@FreeBSD.org>2002-10-20 17:21:43 +0000
commit1e22f4e40db259ccc6972591b43db276eba12471 (patch)
treec651b6bae83995c1c014eca014d8449ed75bafc8 /sys/i386
parent2e1d70d9a2701426ec9036d59f68181888ccc3c1 (diff)
downloadFreeBSD-src-1e22f4e40db259ccc6972591b43db276eba12471.zip
FreeBSD-src-1e22f4e40db259ccc6972591b43db276eba12471.tar.gz
"id" is never going to be -1 when it is unsigned.
Spotted by: FlexeLint
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/pci/pci_bus.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c
index c532a28..8ce2b49 100644
--- a/sys/i386/pci/pci_bus.c
+++ b/sys/i386/pci/pci_bus.c
@@ -344,8 +344,6 @@ nexus_pcib_identify(driver_t *driver, device_t parent)
id = nexus_pcib_read_config(0, bus, slot, func,
PCIR_DEVVENDOR, 4);
- if (id == -1)
- continue;
class = nexus_pcib_read_config(0, bus, slot, func,
PCIR_CLASS, 1);
subclass = nexus_pcib_read_config(0, bus, slot, func,
OpenPOWER on IntegriCloud