aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/atom/sst/sst.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2020-08-13 15:01:31 -0500
committerMark Brown <broonie@kernel.org>2020-08-18 11:50:11 +0100
commit30701e0f3b1a134cbd000ca607a26342a10f6383 (patch)
treead423ab78fdbdbd6e169aac2b0a2f22b3145baa1 /sound/soc/intel/atom/sst/sst.c
parentASoC: Intel: Atom: sst: remove useless NULL assignment (diff)
downloadlinux-dev-30701e0f3b1a134cbd000ca607a26342a10f6383.tar.xz
linux-dev-30701e0f3b1a134cbd000ca607a26342a10f6383.zip
ASoC: Intel: Atom: remove redundant initialization
Fix cppcheck warnings: sound/soc/intel/atom/sst/sst.c:427:13: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] int i, ret = 0; ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200813200147.61990-6-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/atom/sst/sst.c')
-rw-r--r--sound/soc/intel/atom/sst/sst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/atom/sst/sst.c b/sound/soc/intel/atom/sst/sst.c
index 1d1c58e48f42..1900a37d03cc 100644
--- a/sound/soc/intel/atom/sst/sst.c
+++ b/sound/soc/intel/atom/sst/sst.c
@@ -423,7 +423,7 @@ static int intel_sst_suspend(struct device *dev)
{
struct intel_sst_drv *ctx = dev_get_drvdata(dev);
struct sst_fw_save *fw_save;
- int i, ret = 0;
+ int i, ret;
/* check first if we are already in SW reset */
if (ctx->sst_state == SST_RESET)