Date: Wed, 13 May 2026 12:39:46 +0000 From: Olivier Certner <olce@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 98ad729f3e98 - main - acpi_spmc(4): Constraints: Simplify some assertions Message-ID: <6a047112.1973e.fc59e99@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=98ad729f3e98b75ae79cd4b539fe2767f8a6f89e commit 98ad729f3e98b75ae79cd4b539fe2767f8a6f89e Author: Olivier Certner <olce@FreeBSD.org> AuthorDate: 2026-05-04 11:48:16 +0000 Commit: Olivier Certner <olce@FreeBSD.org> CommitDate: 2026-05-13 12:38:21 +0000 acpi_spmc(4): Constraints: Simplify some assertions While here, capitalize their messages. Reviewed by: imp, obiwac Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D56807 --- sys/dev/acpica/acpi_spmc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c index 45231038fd42..530d719fd66e 100644 --- a/sys/dev/acpica/acpi_spmc.c +++ b/sys/dev/acpica/acpi_spmc.c @@ -486,8 +486,7 @@ acpi_spmc_parse_constraints_intel(struct acpi_spmc_softc *sc, ACPI_OBJECT *objec ACPI_OBJECT *detail; ACPI_OBJECT *constraint_package; - KASSERT(sc->constraints_populated == false, - ("constraints already populated")); + KASSERT(!sc->constraints_populated, ("Constraints already populated")); sc->constraint_count = object->Package.Count; sc->constraints = malloc(sc->constraint_count * sizeof *sc->constraints, @@ -548,8 +547,7 @@ acpi_spmc_parse_constraints_amd(struct acpi_spmc_softc *sc, ACPI_OBJECT *object) struct acpi_spmc_constraint *constraint; ACPI_OBJECT *name_obj; - KASSERT(sc->constraints_populated == false, - ("constraints already populated")); + KASSERT(!sc->constraints_populated, ("Constraints already populated")); /* * First element in the package is unknown. @@ -658,7 +656,7 @@ acpi_spmc_check_constraints(struct acpi_spmc_softc *sc) { bool violation = false; - KASSERT(sc->constraints_populated, ("constraints not populated")); + KASSERT(sc->constraints_populated, ("Constraints not populated")); for (size_t i = 0; i < sc->constraint_count; i++) { struct acpi_spmc_constraint *constraint = &sc->constraints[i];home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a047112.1973e.fc59e99>
