summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/acpiutil.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-12-19 23:01:47 +0000
committerderaadt <deraadt@openbsd.org>2006-12-19 23:01:47 +0000
commit9fd64628cdbd923153cdae5864d606ad8e527448 (patch)
tree3f5b0d6514420b8069dcbbaeaa4b453763658d4b /sys/dev/acpi/acpiutil.c
parentspacing (diff)
downloadwireguard-openbsd-9fd64628cdbd923153cdae5864d606ad8e527448.tar.xz
wireguard-openbsd-9fd64628cdbd923153cdae5864d606ad8e527448.zip
slight cleaning
Diffstat (limited to 'sys/dev/acpi/acpiutil.c')
-rw-r--r--sys/dev/acpi/acpiutil.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/acpi/acpiutil.c b/sys/dev/acpi/acpiutil.c
index f1f0d369c76..03f49c70a9d 100644
--- a/sys/dev/acpi/acpiutil.c
+++ b/sys/dev/acpi/acpiutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpiutil.c,v 1.2 2005/07/10 19:39:01 grange Exp $ */
+/* $OpenBSD: acpiutil.c,v 1.3 2006/12/19 23:01:47 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -28,15 +28,13 @@ u_int
acpi_checksum(const void *v, size_t len)
{
const u_char *p = v;
- u_char s;
+ u_char s = 0;
int i;
- s = 0;
for (i = 0; i < len; i++)
s += p[i];
if (s)
printf("acpi: bad checksum at %p\n", v);
-
return (s);
}