From: Pierre-Louis Bossart Date: Thu, 13 Aug 2020 20:01:28 +0000 (-0500) Subject: ASoC: Intel: Atom: compress: remove redundant assignment X-Git-Tag: v5.10-rc1~122^2~1^2^2~166^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0a2a93dc3acb4c2868c60ef0d3278289a532816;p=thirdparty%2Fkernel%2Flinux.git ASoC: Intel: Atom: compress: remove redundant assignment Fix cppcheck warning: sound/soc/intel/atom/sst-mfld-platform-compress.c:46:14: style: Variable 'ret_val' is assigned a value that is never used. [unreadVariable] int ret_val = 0; ^ Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20200813200147.61990-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/atom/sst-mfld-platform-compress.c b/sound/soc/intel/atom/sst-mfld-platform-compress.c index 1595e01a7e126..89c9c5ad6b219 100644 --- a/sound/soc/intel/atom/sst-mfld-platform-compress.c +++ b/sound/soc/intel/atom/sst-mfld-platform-compress.c @@ -42,8 +42,7 @@ static void sst_drain_notify(void *arg) static int sst_platform_compr_open(struct snd_soc_component *component, struct snd_compr_stream *cstream) { - - int ret_val = 0; + int ret_val; struct snd_compr_runtime *runtime = cstream->runtime; struct sst_runtime_stream *stream;