artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fab2d3d
)
Factor a variable assignment in audiopoll().
author
ratchov
<ratchov@openbsd.org>
Mon, 26 Jun 2017 07:02:16 +0000
(07:02 +0000)
committer
ratchov
<ratchov@openbsd.org>
Mon, 26 Jun 2017 07:02:16 +0000
(07:02 +0000)
From Michael Bombardieri, thanks.
sys/dev/audio.c
patch
|
blob
|
history
diff --git
a/sys/dev/audio.c
b/sys/dev/audio.c
index
d6ea436
..
079ce7a
100644
(file)
--- a/
sys/dev/audio.c
+++ b/
sys/dev/audio.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: audio.c,v 1.16
4 2017/05/16 05:48:07
ratchov Exp $ */
+/* $OpenBSD: audio.c,v 1.16
5 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;