--------------------- PatchSet 3073 Date: 2005/03/24 12:01:15 Author: tiwai Branch: HEAD Tag: (none) Log: Summary: kill dead code 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 Members: core/oss/pcm_plugin.c:1.25->1.26 Index: /sound/core/oss/pcm_plugin.c diff -u /sound/core/oss/pcm_plugin.c.old /sound/core/oss/pcm_plugin.c --- /sound/core/oss/pcm_plugin.c.old Mon Jan 3 03:41:51 2005 +++ /sound/core/oss/pcm_plugin.c Thu Mar 24 04:01:15 2005 @@ -663,10 +663,7 @@ 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)