diff options
-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); } |