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:
Olivier Certner
2026-05-07 09:53:36 +02:00
parent b092ee5206
commit b82e41d394
+1 -2
View File
@@ -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);
}