"id" is never going to be -1 when it is unsigned.
Spotted by: FlexeLint
This commit is contained in:
parent
4ed0293602
commit
a67ee49294
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user