mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
oss: Fix dead code
mode cannot be 0 Coverity ID: #1137964 Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
This commit is contained in:
parent
eab0b9d83b
commit
fa7329a2dd
1 changed files with 1 additions and 1 deletions
|
|
@ -1195,7 +1195,7 @@ int pa__init(pa_module*m) {
|
|||
goto fail;
|
||||
}
|
||||
|
||||
mode = (playback && record) ? O_RDWR : (playback ? O_WRONLY : (record ? O_RDONLY : 0));
|
||||
mode = (playback && record) ? O_RDWR : (playback ? O_WRONLY : O_RDONLY);
|
||||
|
||||
ss = m->core->default_sample_spec;
|
||||
map = m->core->default_channel_map;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue