aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-03-08 07:44:27 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-08 07:45:10 -0500
commita93f8e76a446e0a146a169cc2cc82bf1e145ad35 (patch)
tree279aa9708b4a5775e1e7f54e33d9afc3ca1dc8e9 /sound
parente383c467ceeee3b040444d6dcd27f331d72b1426 (diff)
ASoC: core: Remove unused "n_widgets" field from snd_soc_dapm struct
Commit 497098be ("ASoC: dapm: Remove bodges for no-widget CODECs") removed the last user of the n_widgets field. Currently it is incremented for each widget added, but the value is never used, so we can remove it. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-dapm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 1d6a9b3ceb27..625d4824abbb 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -3123,7 +3123,6 @@ snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm,
3123 break; 3123 break;
3124 } 3124 }
3125 3125
3126 dapm->n_widgets++;
3127 w->dapm = dapm; 3126 w->dapm = dapm;
3128 w->codec = dapm->codec; 3127 w->codec = dapm->codec;
3129 w->platform = dapm->platform; 3128 w->platform = dapm->platform;