diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2021-09-16 09:23:46 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-09-16 14:11:16 +0100 |
commit | c6d1fa6c8f663bd49bfe7a20eccb0dc7e43db63a (patch) | |
tree | 02ca83204be3e755d8cf8fe2a871744867cb2dce /sound/soc/codecs/cs35l41.c | |
parent | 243442bcd98f11e21d9827c06a995acf9a6ddead (diff) |
misc: cs35l41: Remove unused pdn variable
Remove pdn variable that was made redundant in an earlier patch.
Fixes: c2f14cc2bcdd ("ASoC: cs35l41: Fix use of an uninitialised variable")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210916082346.12001-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs35l41.c')
-rw-r--r-- | sound/soc/codecs/cs35l41.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs35l41.c b/sound/soc/codecs/cs35l41.c index ad86c030d9cb..b16eb6610c0e 100644 --- a/sound/soc/codecs/cs35l41.c +++ b/sound/soc/codecs/cs35l41.c @@ -564,7 +564,6 @@ static int cs35l41_main_amp_event(struct snd_soc_dapm_widget *w, struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(component); unsigned int val; int ret = 0; - bool pdn; switch (event) { case SND_SOC_DAPM_POST_PMU: @@ -582,7 +581,6 @@ static int cs35l41_main_amp_event(struct snd_soc_dapm_widget *w, regmap_update_bits(cs35l41->regmap, CS35L41_PWR_CTRL1, CS35L41_GLOBAL_EN_MASK, 0); - pdn = false; ret = regmap_read_poll_timeout(cs35l41->regmap, CS35L41_IRQ1_STATUS1, val, val & CS35L41_PDN_DONE_MASK, 1000, 100000); |