From 0e02466d3ce72cc10555337d3591887bafe117ed Mon Sep 17 00:00:00 2001 From: Michael Knudsen Date: Thu, 13 Sep 2007 20:35:48 +0000 Subject: Remove unnecessary memset() (see aml_evalnode(9)) and a bit of KNF. ok toby --- sys/dev/acpi/acpi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys') 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 * Copyright (c) 2005 Jordan Hargrave @@ -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); -- cgit v1.2.3