From f8b9cae814771de46eb66cc93da3952fd57f6941 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 13 Apr 2024 23:44:12 +0000 Subject: correct indentation no functional change, found by smatch warnings ok miod@ bluhm@ --- sys/dev/acpi/acpitoshiba.c | 19 +++++++++---------- sys/dev/acpi/acpivout.c | 4 ++-- sys/dev/acpi/dsdt.c | 4 ++-- 3 files changed, 13 insertions(+), 14 deletions(-) (limited to 'sys/dev/acpi') diff --git a/sys/dev/acpi/acpitoshiba.c b/sys/dev/acpi/acpitoshiba.c index c8ca3f139b4..a1385c95352 100644 --- a/sys/dev/acpi/acpitoshiba.c +++ b/sys/dev/acpi/acpitoshiba.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpitoshiba.c,v 1.16 2022/04/06 18:59:27 naddy Exp $ */ +/* $OpenBSD: acpitoshiba.c,v 1.17 2024/04/13 23:44:11 jsg Exp $ */ /*- * Copyright (c) 2003 Hiroyuki Aizu * All rights reserved. @@ -202,19 +202,18 @@ toshiba_update_brightness(void *arg0, int arg1) int toshiba_match(struct device *parent, void *match, void *aux) { - struct acpi_attach_args *aa = aux; - struct cfdata *cf = match; + struct acpi_attach_args *aa = aux; + struct cfdata *cf = match; - if (acpi_matchhids(aa, acpitoshiba_hids, cf->cf_driver->cd_name)) - return (1); + if (acpi_matchhids(aa, acpitoshiba_hids, cf->cf_driver->cd_name)) + return (1); if (aa->aaa_name == NULL || - strcmp(aa->aaa_name, cf->cf_driver->cd_name) != 0 || - aa->aaa_table != NULL) - return (0); - - return (1); + strcmp(aa->aaa_name, cf->cf_driver->cd_name) != 0 || + aa->aaa_table != NULL) + return (0); + return (1); } int diff --git a/sys/dev/acpi/acpivout.c b/sys/dev/acpi/acpivout.c index db383b4500a..53b5816c978 100644 --- a/sys/dev/acpi/acpivout.c +++ b/sys/dev/acpi/acpivout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpivout.c,v 1.25 2022/04/06 18:59:27 naddy Exp $ */ +/* $OpenBSD: acpivout.c,v 1.26 2024/04/13 23:44:11 jsg Exp $ */ /* * Copyright (c) 2009 Paul Irofti * @@ -259,7 +259,7 @@ acpivout_get_bcl(struct acpivout_softc *sc) value = aml_val2int(res.v_package[i + 2]); for (j = i; j > 0 && sc->sc_bcl[j - 1] > value; j--) sc->sc_bcl[j] = sc->sc_bcl[j - 1]; - sc->sc_bcl[j] = value; + sc->sc_bcl[j] = value; } err: diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c index 24ebf445551..654a37c0961 100644 --- a/sys/dev/acpi/dsdt.c +++ b/sys/dev/acpi/dsdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsdt.c,v 1.265 2024/01/08 19:52:29 kettenis Exp $ */ +/* $OpenBSD: dsdt.c,v 1.266 2024/04/13 23:44:11 jsg Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave * @@ -4249,7 +4249,7 @@ aml_parse(struct aml_scope *scope, int ret_type, const char *stype) /* Name: Nt */ rv = opargs[0]; aml_freevalue(rv); - aml_copyvalue(rv, opargs[1]); + aml_copyvalue(rv, opargs[1]); break; case AMLOP_ALIAS: /* Alias: nN */ -- cgit v1.2.3