summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2017-06-26 07:02:17 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2017-06-26 07:02:17 +0000
commitdaff9b495505d6f740d5bfef8809e5c5d77b67c7 (patch)
tree81af143647332d2bc1d723d8908e3183d0ddba22
parent92b271bd4bfe637ca5dabe7e31f29c833851cb57 (diff)
Factor a variable assignment in audiopoll().
From Michael Bombardieri, thanks.
-rw-r--r--sys/dev/audio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c
index d6ea436cddc..079ce7a215d 100644
--- a/sys/dev/audio.c
+++ b/sys/dev/audio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audio.c,v 1.164 2017/05/16 05:48:07 ratchov Exp $ */
+/* $OpenBSD: audio.c,v 1.165 2017/06/26 07:02:16 ratchov Exp $ */
/*
* Copyright (c) 2015 Alexandre Ratchov <alex@caoua.org>
*
@@ -1741,10 +1741,9 @@ audiopoll(dev_t dev, int events, struct proc *p)
break;
case AUDIO_DEV_AUDIOCTL:
case AUDIO_DEV_MIXER:
- revents = 0;
- break;
default:
revents = 0;
+ break;
}
device_unref(&sc->dev);
return revents;