git: 0a764beb6215 - main - acpi_spmc(4): Remove redundant setting of 'sc->dev' on attach
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Apr 2026 21:05:04 UTC
The branch main has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=0a764beb6215f067787fba1723f211b7ef0eeeb0
commit 0a764beb6215f067787fba1723f211b7ef0eeeb0
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-04-17 21:02:06 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-04-17 21:04:50 +0000
acpi_spmc(4): Remove redundant setting of 'sc->dev' on attach
Should have been part of the previous commit (but PEBCAK).
Reviewed by: obiwac
Fixes: bd05b47fbd8b ("acpi_spmc(4): Small probe improvements/fixes")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56483
---
sys/dev/acpica/acpi_spmc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c
index 5be2ba439de4..03944800327d 100644
--- a/sys/dev/acpica/acpi_spmc.c
+++ b/sys/dev/acpica/acpi_spmc.c
@@ -227,8 +227,6 @@ acpi_spmc_attach(device_t dev)
{
struct acpi_spmc_softc *sc = device_get_softc(dev);
- sc->dev = dev;
-
sc->handle = acpi_get_handle(dev);
if (sc->handle == NULL)
return (ENXIO);