aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/intel/atom/sst-mfld-platform-pcm.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2020-08-13 15:01:33 -0500
committerMark Brown <broonie@kernel.org>2020-08-18 11:50:13 +0100
commit5ab56a224398a05ade1762d591321f238c284b19 (patch)
tree59a74526f490ac4aabf181bacd71b03423de2fd1 /sound/soc/intel/atom/sst-mfld-platform-pcm.c
parentASoC: Intel: Atom: sst_pvt: remove redundant initialization (diff)
downloadwireguard-linux-5ab56a224398a05ade1762d591321f238c284b19.tar.xz
wireguard-linux-5ab56a224398a05ade1762d591321f238c284b19.zip
ASoC: Intel: Atom: platform-pcm: fix redundant return
Fix cppcheck warning return ret_val; ^ sound/soc/intel/atom/sst-mfld-platform-pcm.c:384:6: note: If condition 'ret_val' is true, the function will return/exit if (ret_val) ^ sound/soc/intel/atom/sst-mfld-platform-pcm.c:387:9: note: Returning identical expression 'ret_val' return ret_val; ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200813200147.61990-8-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/atom/sst-mfld-platform-pcm.c')
-rw-r--r--sound/soc/intel/atom/sst-mfld-platform-pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst-mfld-platform-pcm.c
index eb1aa58d94b9..6add70500ed8 100644
--- a/sound/soc/intel/atom/sst-mfld-platform-pcm.c
+++ b/sound/soc/intel/atom/sst-mfld-platform-pcm.c
@@ -385,7 +385,7 @@ static int sst_media_prepare(struct snd_pcm_substream *substream,
if (ret_val)
return ret_val;
substream->runtime->hw.info = SNDRV_PCM_INFO_BLOCK_TRANSFER;
- return ret_val;
+ return 0;
}
static int sst_enable_ssp(struct snd_pcm_substream *substream,