]> Git Repo - linux.git/commitdiff
ASoC: Intel: bytcht_cx2072x: simplify return handling
authorPierre-Louis Bossart <[email protected]>
Thu, 13 Aug 2020 17:58:38 +0000 (12:58 -0500)
committerMark Brown <[email protected]>
Mon, 17 Aug 2020 14:42:59 +0000 (15:42 +0100)
Fix cppcheck warning:

sound/soc/intel/boards/bytcht_cx2072x.c:102:9: warning: Identical
condition and return expression 'ret', return value is always 0
[identicalConditionAfterEarlyExit]

Signed-off-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
sound/soc/intel/boards/bytcht_cx2072x.c

index 9cb42ba40c07a5a93b1f57d1187845330a17a25e..0b50b3646d5526c80fad75bbaf689671f2d07a66 100644 (file)
@@ -99,7 +99,7 @@ static int byt_cht_cx2072x_init(struct snd_soc_pcm_runtime *rtd)
 
        snd_soc_dai_set_bclk_ratio(asoc_rtd_to_codec(rtd, 0), 50);
 
-       return ret;
+       return 0;
 }
 
 static int byt_cht_cx2072x_fixup(struct snd_soc_pcm_runtime *rtd,
This page took 0.061083 seconds and 4 git commands to generate.