"id" is never going to be -1 when it is unsigned.

Spotted by:	FlexeLint
This commit is contained in:
Poul-Henning Kamp 2002-10-20 17:21:43 +00:00
parent 4ed0293602
commit a67ee49294
2 changed files with 0 additions and 4 deletions

View File

@ -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,

View File

@ -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,