acpi_spmc(4): Trivial simplification in detach function
Reviewed by: obiwac Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D56881
This commit is contained in:
@@ -441,8 +441,7 @@ acpi_spmc_detach(device_t dev)
|
||||
|
||||
EVENTHANDLER_DEREGISTER(acpi_post_dev_suspend, sc->eh_suspend);
|
||||
EVENTHANDLER_DEREGISTER(acpi_pre_dev_resume, sc->eh_resume);
|
||||
|
||||
acpi_spmc_free_constraints(device_get_softc(dev));
|
||||
acpi_spmc_free_constraints(sc);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user