summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-04-13 23:44:12 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-04-13 23:44:12 +0000
commitf8b9cae814771de46eb66cc93da3952fd57f6941 (patch)
tree7e85700c0d56cb96bb228a8f3a772fc366f1d7d5 /sys/dev/acpi
parentd5099c55a37a6e9ed2c726cebdf85453b3a0448e (diff)
correct indentation
no functional change, found by smatch warnings ok miod@ bluhm@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpitoshiba.c19
-rw-r--r--sys/dev/acpi/acpivout.c4
-rw-r--r--sys/dev/acpi/dsdt.c4
3 files changed, 13 insertions, 14 deletions
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 <aizu@navi.org>
* 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 <paul@irofti.net>
*
@@ -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 <jordan@openbsd.org>
*
@@ -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 */