mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
[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: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
254feb882a
commit
94f19c9a6d
@ -663,10 +663,7 @@ static int snd_pcm_plug_playback_channels_mask(snd_pcm_plug_t *plug,
|
||||
bitset_t *dstmask = bs;
|
||||
int err;
|
||||
bitset_one(dstmask, schannels);
|
||||
if (plugin == NULL) {
|
||||
bitset_and(client_vmask, dstmask, schannels);
|
||||
return 0;
|
||||
}
|
||||
|
||||
while (1) {
|
||||
err = plugin->src_channels_mask(plugin, dstmask, &srcmask);
|
||||
if (err < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user