summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpi.c
diff options
context:
space:
mode:
authorMichael Knudsen <mk@cvs.openbsd.org>2007-09-13 20:35:48 +0000
committerMichael Knudsen <mk@cvs.openbsd.org>2007-09-13 20:35:48 +0000
commit0e02466d3ce72cc10555337d3591887bafe117ed (patch)
treea0f689166c5ba1f1c0e2e64bb85dd056c8fa427b /sys/dev/acpi/acpi.c
parent536d297ebdbf2ecdb486ece289c79f4d0bae483e (diff)
Remove unnecessary memset() (see aml_evalnode(9)) and a bit of KNF.
ok toby
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r--sys/dev/acpi/acpi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index fd42c28326c..57a782a2008 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.89 2007/09/13 03:43:22 weingart Exp $ */
+/* $OpenBSD: acpi.c,v 1.90 2007/09/13 20:35:47 mk Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -268,8 +268,7 @@ acpi_inidev(struct aml_node *node, void *arg)
*/
/* Evaluate _STA to decide _INI fate and walk fate */
- memset(&res, 0, sizeof res);
- if (! aml_evalname(sc, node, "_STA", 0, NULL, &res))
+ if (!aml_evalname(sc, node, "_STA", 0, NULL, &res))
st = (int)aml_val2int(&res);
aml_freevalue(&res);