ASoC: mt6358: remove useless initializations
cppcheck warnings:
sound/soc/codecs/mt6358.c:334:19: style: Variable 'stage' is assigned
a value that is never used. [unreadVariable]
int i = 0, stage = 0;
^
sound/soc/codecs/mt6358.c:350:19: style: Variable 'stage' is assigned
a value that is never used. [unreadVariable]
int i = 0, stage = 0;
^
185/930 files checked 25% done
Checking sound/soc/codecs/mt6359.c ...
sound/soc/codecs/mt6359.c:274:8: style: Variable 'i' is assigned a
value that is never used. [unreadVariable]
int i = 0, stage = 0;
^
sound/soc/codecs/mt6359.c:274:19: style: Variable 'stage' is assigned
a value that is never used. [unreadVariable]
int i = 0, stage = 0;
^
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210312182246.5153-14-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
226a783f3d
commit
2b5e8cd53f
@@ -331,7 +331,7 @@ static void hp_zcd_disable(struct mt6358_priv *priv)
|
||||
|
||||
static void hp_main_output_ramp(struct mt6358_priv *priv, bool up)
|
||||
{
|
||||
int i = 0, stage = 0;
|
||||
int i, stage;
|
||||
int target = 7;
|
||||
|
||||
/* Enable/Reduce HPL/R main output stage step by step */
|
||||
@@ -347,7 +347,7 @@ static void hp_main_output_ramp(struct mt6358_priv *priv, bool up)
|
||||
|
||||
static void hp_aux_feedback_loop_gain_ramp(struct mt6358_priv *priv, bool up)
|
||||
{
|
||||
int i = 0, stage = 0;
|
||||
int i, stage;
|
||||
|
||||
/* Reduce HP aux feedback loop gain step by step */
|
||||
for (i = 0; i <= 0xf; i++) {
|
||||
|
||||
Reference in New Issue
Block a user