summaryrefslogtreecommitdiff
path: root/sys/dev/audio.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-09 17:53:40 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-09 17:53:40 +0000
commit9473d5ca6183970c256efe065773dda18e76cac4 (patch)
treec9ec3b4b0898967b165f4e25400b8686f69727b1 /sys/dev/audio.c
parent8314ec33d28a7808b9db09541a81f1ac0496c799 (diff)
Every selwakeup() should have a matching KNOTE() (even if kqueue isn't
supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
Diffstat (limited to 'sys/dev/audio.c')
-rw-r--r--sys/dev/audio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c
index 6dd0f35a685..e3244dc6997 100644
--- a/sys/dev/audio.c
+++ b/sys/dev/audio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audio.c,v 1.106 2009/10/27 12:13:33 jakemsr Exp $ */
+/* $OpenBSD: audio.c,v 1.107 2009/11/09 17:53:39 nicm Exp $ */
/* $NetBSD: audio.c,v 1.119 1999/11/09 16:50:47 augustss Exp $ */
/*
@@ -1764,7 +1764,6 @@ audio_selwakeup(struct audio_softc *sc, int play)
selwakeup(si);
if (sc->sc_async_audio)
psignal(sc->sc_async_audio, SIGIO);
- KNOTE(&si->si_note, 0);
}
#define AUDIO_FILTREAD(sc) ( \