We only need the devclass_find() result, not the softc.
This commit is contained in:
parent
b9d38fa25a
commit
345281bc43
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user