ASoC: qdsp6: q6asm-dai: clean up a return
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 10 Sep 2018 08:40:48 +0000 (11:40 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 10 Sep 2018 10:46:39 +0000 (11:46 +0100)
Smatch complains that if both "psubstream" and "csubstream" are NULL
then "ret" is uninitialized.  That probably can't happen, but it's
cleaner to just return zero anyway so let's do that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6asm-dai.c

index 9db9a2944ef26d23bb1bd95b33a1af6ac2a1517c..c75fab38905d2d4b22d1e41563b50cda30c51e4b 100644 (file)
@@ -493,7 +493,7 @@ static int q6asm_dai_pcm_new(struct snd_soc_pcm_runtime *rtd)
                }
        }
 
-       return ret;
+       return 0;
 }
 
 static void q6asm_dai_pcm_free(struct snd_pcm *pcm)