git: f56201cee3e8 - main - acpi_spmc(4): acpi_spmc_probe_dsm(): Remove passing superfluous handle
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 May 2026 12:39:58 UTC
The branch main has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=f56201cee3e8f90dd17ec287b43997983d23fdfe
commit f56201cee3e8f90dd17ec287b43997983d23fdfe
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-05-04 20:21:41 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-05-13 12:38:24 +0000
acpi_spmc(4): acpi_spmc_probe_dsm(): Remove passing superfluous handle
The handle is already held by the softc, which is also passed.
No functional change (intended).
Reviewed by: imp, obiwac
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56818
---
sys/dev/acpica/acpi_spmc.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c
index b12723a14bee..96050705c5e5 100644
--- a/sys/dev/acpica/acpi_spmc.c
+++ b/sys/dev/acpica/acpi_spmc.c
@@ -332,8 +332,8 @@ failed_to_call_dsm(const struct acpi_spmc_softc *const sc,
dsm->name, dsm->revision, dsm_function_name(dsm, function_index));
}
-static void acpi_spmc_probe_dsm(struct acpi_spmc_softc *sc,
- ACPI_HANDLE handle, const struct dsm_desc *const dsm);
+static void acpi_spmc_probe_dsm(struct acpi_spmc_softc *const sc,
+ const struct dsm_desc *const dsm);
static void acpi_spmc_dsm_print_functions(
const struct acpi_spmc_softc *const sc,
const struct dsm_desc *const dsm);
@@ -382,7 +382,7 @@ acpi_spmc_attach(device_t dev)
("%s: Inconsistent indices for DSM %s", __func__,
dsms[i]->name));
- acpi_spmc_probe_dsm(sc, handle, dsms[i]);
+ acpi_spmc_probe_dsm(sc, dsms[i]);
}
if (sc->dsms == 0) {
@@ -460,10 +460,10 @@ acpi_spmc_dsm_print_functions(const struct acpi_spmc_softc *const sc,
}
static void
-acpi_spmc_probe_dsm(struct acpi_spmc_softc *sc, ACPI_HANDLE handle,
+acpi_spmc_probe_dsm(struct acpi_spmc_softc *const sc,
const struct dsm_desc *const dsm)
{
- const uint64_t supported_functions = acpi_DSMQuery(handle,
+ const uint64_t supported_functions = acpi_DSMQuery(sc->handle,
(const uint8_t *)&dsm->uuid, dsm->revision);
/*