summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2020-08-13 15:01:32 -0500
committerMark Brown <broonie@kernel.org>2020-08-18 11:50:12 +0100
commitf3352e6b7c27078d9342c9faa8332b8113719f4b (patch)
tree6ff108c8a614d3743df9dfd5fa1a091962bf85ae
parent30701e0f3b1a134cbd000ca607a26342a10f6383 (diff)
downloadlinux-stable-f3352e6b7c27078d9342c9faa8332b8113719f4b.tar.gz
linux-stable-f3352e6b7c27078d9342c9faa8332b8113719f4b.tar.bz2
linux-stable-f3352e6b7c27078d9342c9faa8332b8113719f4b.zip
ASoC: Intel: Atom: sst_pvt: remove redundant initialization
Fix cppcheck warning: sound/soc/intel/atom/sst/sst_pvt.c:201:9: warning: Identical condition and return expression 'retval', return value is always 0 [identicalConditionAfterEarlyExit] return retval; ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200813200147.61990-7-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/intel/atom/sst/sst_pvt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/atom/sst/sst_pvt.c b/sound/soc/intel/atom/sst/sst_pvt.c
index 053c27707147..3bd1bd3e43d6 100644
--- a/sound/soc/intel/atom/sst/sst_pvt.c
+++ b/sound/soc/intel/atom/sst/sst_pvt.c
@@ -188,7 +188,7 @@ int sst_create_block_and_ipc_msg(struct ipc_post **arg, bool large,
struct intel_sst_drv *sst_drv_ctx, struct sst_block **block,
u32 msg_id, u32 drv_id)
{
- int retval = 0;
+ int retval;
retval = sst_create_ipc_msg(arg, large);
if (retval)