mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
Revert last commit, there actually was a -1 waaaaay down in pcireg_cfgread().
This commit is contained in:
parent
218565dc75
commit
7f30cdf366
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105535
@ -344,6 +344,8 @@ 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,6 +344,8 @@ 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