summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2021-10-25 13:59:30 -0500
committerMark Brown <broonie@kernel.org>2021-10-27 11:31:12 +0100
commit33fb790fcc02a717c1cac90958f203f06da14f7e (patch)
treee7e147f11a665e6d1603e5c883ced58aec943ac6
parent46ae0b3f554a323322a770c0edee50aa8019a655 (diff)
downloadlinux-stable-33fb790fcc02a717c1cac90958f203f06da14f7e.tar.gz
linux-stable-33fb790fcc02a717c1cac90958f203f06da14f7e.tar.bz2
linux-stable-33fb790fcc02a717c1cac90958f203f06da14f7e.zip
ASoC: mediatek: remove unnecessary initialization
Cppcheck warning: sound/soc/mediatek/common/mtk-afe-fe-dai.c:353:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] int i = 0; ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211025185933.144327-6-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/mediatek/common/mtk-afe-fe-dai.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/mediatek/common/mtk-afe-fe-dai.c b/sound/soc/mediatek/common/mtk-afe-fe-dai.c
index 4f2c2379531b..395be97f13ae 100644
--- a/sound/soc/mediatek/common/mtk-afe-fe-dai.c
+++ b/sound/soc/mediatek/common/mtk-afe-fe-dai.c
@@ -350,7 +350,7 @@ int mtk_afe_resume(struct snd_soc_component *component)
struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component);
struct device *dev = afe->dev;
struct regmap *regmap = afe->regmap;
- int i = 0;
+ int i;
if (pm_runtime_status_suspended(dev) || !afe->suspended)
return 0;