summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wcd934x.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2021-02-18 16:29:15 -0600
committerMark Brown <broonie@kernel.org>2021-03-10 13:01:57 +0000
commit7faaea14feeeb88177ecf8a640a203c319960d43 (patch)
treede16ab8bec53463bb6fb831bcd4a50d96ed682b0 /sound/soc/codecs/wcd934x.c
parent8d2f2d7ff3c69e1b7a2d1424e4d2dc8a6fe77849 (diff)
downloadlinux-stable-7faaea14feeeb88177ecf8a640a203c319960d43.tar.gz
linux-stable-7faaea14feeeb88177ecf8a640a203c319960d43.tar.bz2
linux-stable-7faaea14feeeb88177ecf8a640a203c319960d43.zip
ASoC: wcd934x: remove useless return
cppcheck warning: sound/soc/codecs/wcd934x.c:1571:9: warning: Identical condition and return expression 'ret', return value is always 0 [identicalConditionAfterEarlyExit] return ret; ^ sound/soc/codecs/wcd934x.c:1568:6: note: If condition 'ret' is true, the function will return/exit if (ret) ^ sound/soc/codecs/wcd934x.c:1571:9: note: Returning identical expression 'ret' return ret; ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20210218222916.89809-10-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wcd934x.c')
-rw-r--r--sound/soc/codecs/wcd934x.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/wcd934x.c b/sound/soc/codecs/wcd934x.c
index d18ae5e3ee80..2c4818dc2e6d 100644
--- a/sound/soc/codecs/wcd934x.c
+++ b/sound/soc/codecs/wcd934x.c
@@ -1565,8 +1565,6 @@ static int wcd934x_set_interpolator_rate(struct snd_soc_dai *dai,
return ret;
ret = wcd934x_set_mix_interpolator_rate(dai, (u8)rate_val,
sample_rate);
- if (ret)
- return ret;
return ret;
}