Skip to content

Commit

Permalink
[ALSA] kill dead code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Jaroslav Kysela committed May 29, 2005
1 parent 254feb8 commit 94f19c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sound/core/oss/pcm_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 94f19c9

Please sign in to comment.