diff options
author | 2010-03-25 23:00:20 +0000 | |
---|---|---|
committer | 2010-03-25 23:00:20 +0000 | |
commit | 7fa0798b0d5a897b96503acdbe511780bce58c17 (patch) | |
tree | 541fade7a4759c3cf75cef44018aefe746ed67c5 /sys | |
parent | Make the i386 and amd64 bus_dma functions for isa less stupid: (diff) | |
download | wireguard-openbsd-7fa0798b0d5a897b96503acdbe511780bce58c17.tar.xz wireguard-openbsd-7fa0798b0d5a897b96503acdbe511780bce58c17.zip |
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); |