diff options
author | 2010-07-27 22:11:44 +0000 | |
---|---|---|
committer | 2010-07-27 22:11:44 +0000 | |
commit | 4d539376d7d97b4bfd2b04e4d1a5a92554127b55 (patch) | |
tree | 451e93c9d7e85c721a32fb6104cca8bcaa629c05 | |
parent | spacing; ok deraadt@ (diff) | |
download | wireguard-openbsd-4d539376d7d97b4bfd2b04e4d1a5a92554127b55.tar.xz wireguard-openbsd-4d539376d7d97b4bfd2b04e4d1a5a92554127b55.zip |
horrific indentation that nearly made me puke
-rw-r--r-- | sys/dev/acpi/acpi.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index ded80a073d4..6ca0ca7dd76 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.191 2010/07/27 16:20:17 mlarkin Exp $ */ +/* $OpenBSD: acpi.c,v 1.192 2010/07/27 22:11:44 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -1500,9 +1500,8 @@ acpi_foundprw(struct aml_node *node, void *arg) struct acpi_wakeq *wq; wq = malloc(sizeof(struct acpi_wakeq), M_DEVBUF, M_NOWAIT | M_ZERO); - if (wq == NULL) { + if (wq == NULL) return 0; - } wq->q_wakepkg = malloc(sizeof(struct aml_value), M_DEVBUF, M_NOWAIT | M_ZERO); @@ -1516,13 +1515,12 @@ acpi_foundprw(struct aml_node *node, void *arg) wq->q_gpe = -1; /* Get GPE of wakeup device, and lowest sleep level */ - if (wq->q_wakepkg->type == AML_OBJTYPE_PACKAGE && wq->q_wakepkg->length >= 2) { - if (wq->q_wakepkg->v_package[0]->type == AML_OBJTYPE_INTEGER) { - wq->q_gpe = wq->q_wakepkg->v_package[0]->v_integer; - } - if (wq->q_wakepkg->v_package[1]->type == AML_OBJTYPE_INTEGER) { - wq->q_state = wq->q_wakepkg->v_package[1]->v_integer; - } + if (wq->q_wakepkg->type == AML_OBJTYPE_PACKAGE && + wq->q_wakepkg->length >= 2) { + if (wq->q_wakepkg->v_package[0]->type == AML_OBJTYPE_INTEGER) + wq->q_gpe = wq->q_wakepkg->v_package[0]->v_integer; + if (wq->q_wakepkg->v_package[1]->type == AML_OBJTYPE_INTEGER) + wq->q_state = wq->q_wakepkg->v_package[1]->v_integer; } SIMPLEQ_INSERT_TAIL(&sc->sc_wakedevs, wq, q_next); return 0; |