From: Lars-Peter Clausen Date: Fri, 8 Mar 2013 12:44:27 +0000 (+0100) Subject: ASoC: core: Remove unused "n_widgets" field from snd_soc_dapm struct X-Git-Tag: upstream/snapshot3+hdmi~5112^2~20^2~6^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a93f8e76a446e0a146a169cc2cc82bf1e145ad35;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Mark Brown --- diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index e1ef63d..d4c0049 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h @@ -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; diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 1d6a9b3..625d482 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, break; } - dapm->n_widgets++; w->dapm = dapm; w->codec = dapm->codec; w->platform = dapm->platform;