summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/acpi/acpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index add53a52080..909e1db7124 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.152 2009/11/26 23:44:38 mlarkin Exp $ */
+/* $OpenBSD: acpi.c,v 1.153 2010/03/25 23:00:20 oga Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -1060,7 +1060,7 @@ acpi_filtread(struct knote *kn, long hint)
{
#ifndef SMALL_KERNEL
/* XXX weird kqueue_scan() semantics */
- if (hint & !kn->kn_data)
+ if (hint && !kn->kn_data)
kn->kn_data = hint;
#endif
return (1);