diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-19 23:01:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-19 23:01:48 +0000 |
commit | 96a97eaa8f1747868b82124a19a94f9358ebb722 (patch) | |
tree | c07183f24bc45f28be8add374b5efbb917fe4d3b /sys | |
parent | bd2fe4fb4a1e0f06dc4b54676b3dbe07ae5987a7 (diff) |
slight cleaning
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpi/acpiutil.c | 6 |
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); } |