]> err.no Git - linux-2.6/commitdiff
[ALSA] kill dead code
authorAdrian Bunk <bunk@stusta.de>
Thu, 24 Mar 2005 11:01:15 +0000 (12:01 +0100)
committerJaroslav Kysela <perex@suse.cz>
Sun, 29 May 2005 07:00:11 +0000 (09:00 +0200)
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>
sound/core/oss/pcm_plugin.c

index 6bb31009f0b4996949981c129b0cc94b29b1b7ce..6430410c6c04703af940b04f377b15fdb304572a 100644 (file)
@@ -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)