summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-12-07 03:44:37 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-12-07 03:44:37 +0000
commitad9895ebdd2f3734ce0623f5637117cf38b974db (patch)
treed7b9b2eb1a2ce7341587f706f4aac7a855a8267a
parente0476a9099bc24bd297b143f08d405d98383bd47 (diff)
KNF
-rw-r--r--sys/dev/acpi/acpi.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index 8cab4749990..bd97a0a6d18 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.2 2005/07/10 19:39:01 grange Exp $ */
+/* $OpenBSD: acpi.c,v 1.3 2005/12/07 03:44:36 marco Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -316,8 +316,7 @@ acpi_loadtables(struct acpi_softc *sc, struct acpi_rsdp *rsdp)
acpi_unmap(&handle);
}
acpi_unmap(&hrsdt);
- }
- else {
+ } else {
struct acpi_rsdt *rsdt;
if (acpi_map(rsdp->rsdp_rsdt, sizeof(*hdr), &handle)) {
@@ -531,8 +530,7 @@ acpiioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
if (table->table == NULL) {
table->size = hdr->length;
error = 0;
- }
- else if (hdr->length > table->size)
+ } else if (hdr->length > table->size)
error = ENOSPC;
else
error = copyout(hdr, table->table, hdr->length);