git: 0b2df683672e - main - acpi_spmc: Remove useless __DECONSTs

From: Aymeric Wibo <obiwac_at_FreeBSD.org>
Date: Fri, 22 May 2026 11:27:59 UTC
The branch main has been updated by obiwac:

URL: https://cgit.FreeBSD.org/src/commit/?id=0b2df683672e3b5792aa552a3700da86617f9d90

commit 0b2df683672e3b5792aa552a3700da86617f9d90
Author:     Aymeric Wibo <obiwac@FreeBSD.org>
AuthorDate: 2026-05-22 11:11:39 +0000
Commit:     Aymeric Wibo <obiwac@FreeBSD.org>
CommitDate: 2026-05-22 11:27:40 +0000

    acpi_spmc: Remove useless __DECONSTs
    
    Sponsored by:   The FreeBSD Foundation
---
 sys/dev/acpica/acpi_spmc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c
index c8e2cf4c3733..611a9a09a6eb 100644
--- a/sys/dev/acpica/acpi_spmc.c
+++ b/sys/dev/acpica/acpi_spmc.c
@@ -785,8 +785,8 @@ acpi_spmc_get_constraints(struct acpi_spmc_softc *const sc)
 	for (size_t i = 0; i < sc->constraint_count; i++) {
 		constraint = &sc->constraints[i];
 
-		status = acpi_GetHandleInScope(sc->handle,
-		    __DECONST(char *, constraint->name), &constraint->handle);
+		status = acpi_GetHandleInScope(sc->handle, constraint->name,
+		    &constraint->handle);
 		if (ACPI_FAILURE(status)) {
 			if (VERBOSE())
 				device_printf(sc->dev,