diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-03-25 23:00:21 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-03-25 23:00:21 +0000 |
commit | 631a7005a93ba6bdee2d9a22d3d3401c0e5172ed (patch) | |
tree | cb0a2e7773ae2ccd1722b3fd8a12e9bf6ced5d43 /sys | |
parent | f477292ed82c5aeb90ff7c13194259da9f8cc94c (diff) |
Fix & vs. && in the kqfilter code.
Based on a comparison with the apm code.
ok deraadt@, kettenis@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpi/acpi.c | 4 |
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); |