ASoC: core: Remove unused "n_widgets" field from snd_soc_dapm struct
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 8 Mar 2013 12:44:27 +0000 (13:44 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 8 Mar 2013 12:45:10 +0000 (20:45 +0800)
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>
include/sound/soc-dapm.h
sound/soc/soc-dapm.c

index e1ef63d4a5c453b17630b279d5780b32f1e722c3..d4c004929ae5cb46534449ec988adb34f0c6624d 100644 (file)
@@ -565,7 +565,6 @@ struct snd_soc_dapm_update {
 
 /* DAPM context */
 struct snd_soc_dapm_context {
-       int n_widgets; /* number of widgets in this context */
        enum snd_soc_bias_level bias_level;
        enum snd_soc_bias_level suspend_bias_level;
        struct delayed_work delayed_work;
index 1d6a9b3ceb27cc0b9a6ea307faecaf5872d6b6c9..625d4824abbb596b498958304ea5b723c27357e8 100644 (file)
@@ -3123,7 +3123,6 @@ snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm,
                break;
        }
 
-       dapm->n_widgets++;
        w->dapm = dapm;
        w->codec = dapm->codec;
        w->platform = dapm->platform;