We only need the devclass_find() result, not the softc.

This commit is contained in:
Nate Lawson 2004-06-15 02:12:12 +00:00
parent b9d38fa25a
commit 345281bc43
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130510
2 changed files with 2 additions and 2 deletions

View File

@ -556,7 +556,7 @@ pnpbios_identify(driver_t *driver, device_t parent)
return;
/* ACPI already active */
if (devclass_get_softc(devclass_find("acpi"), 0) != NULL)
if (devclass_find("acpi") != NULL)
return;
/* get count of PnP devices */

View File

@ -556,7 +556,7 @@ pnpbios_identify(driver_t *driver, device_t parent)
return;
/* ACPI already active */
if (devclass_get_softc(devclass_find("acpi"), 0) != NULL)
if (devclass_find("acpi") != NULL)
return;
/* get count of PnP devices */