Commit 94f19c9a authored by Adrian Bunk's avatar Adrian Bunk Committed by Jaroslav Kysela

[ALSA] kill dead code

ALSA<-OSS emulation
The Coverity checker found this obviously dead code.

I'm not sure which of the if (plugin == NULL) is correct - this patch
removes the one that couldn't be true.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 254feb88
...@@ -663,10 +663,7 @@ static int snd_pcm_plug_playback_channels_mask(snd_pcm_plug_t *plug, ...@@ -663,10 +663,7 @@ static int snd_pcm_plug_playback_channels_mask(snd_pcm_plug_t *plug,
bitset_t *dstmask = bs; bitset_t *dstmask = bs;
int err; int err;
bitset_one(dstmask, schannels); bitset_one(dstmask, schannels);
if (plugin == NULL) {
bitset_and(client_vmask, dstmask, schannels);
return 0;
}
while (1) { while (1) {
err = plugin->src_channels_mask(plugin, dstmask, &srcmask); err = plugin->src_channels_mask(plugin, dstmask, &srcmask);
if (err < 0) if (err < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment