1
0
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:
Poul-Henning Kamp 2002-10-20 17:54:17 +00:00
parent 218565dc75
commit 7f30cdf366
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105535
2 changed files with 4 additions and 0 deletions

View File

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

View File

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