diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-08-13 20:58:38 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-08-17 17:42:59 +0300 |
commit | 9c7deb0576d7fe4370a23f4e127b2a69325f7ce9 (patch) | |
tree | deb5e7e2cc78048cd458c08ac9b8f7c4b169e756 /sound/soc/intel/boards/bytcht_cx2072x.c | |
parent | 1e6444271c667d56f3a793cfc295b72a1f8007da (diff) | |
download | linux-9c7deb0576d7fe4370a23f4e127b2a69325f7ce9.tar.xz |
ASoC: Intel: bytcht_cx2072x: simplify return handling
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 <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200813175839.59422-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/bytcht_cx2072x.c')
-rw-r--r-- | sound/soc/intel/boards/bytcht_cx2072x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/bytcht_cx2072x.c b/sound/soc/intel/boards/bytcht_cx2072x.c index 9cb42ba40c07..0b50b3646d55 100644 --- a/sound/soc/intel/boards/bytcht_cx2072x.c +++ b/sound/soc/intel/boards/bytcht_cx2072x.c @@ -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, |