All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][alsa-lib] topology: fix unused-const-variable warning
@ 2016-11-29 15:44 Takashi Sakamoto
  2016-12-17  0:39 ` Takashi Sakamoto
  0 siblings, 1 reply; 9+ messages in thread
From: Takashi Sakamoto @ 2016-11-29 15:44 UTC (permalink / raw)
  To: tiwai, perex; +Cc: liam.r.girdwood, alsa-devel

Last year, unused static const variable was added, then compiler generates
a below warning.

dapm.c:43:30: warning: ‘widget_control_map’ defined but not used [-Wunused-const-variable=]
 static const struct map_elem widget_control_map[] = {
                              ^~~~~~~~~~~~~~~~~~

This commit removes it.

Fixes: 01a0e1a1c219 ("topology: Add DAPM object parser")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
---
 src/topology/dapm.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/topology/dapm.c b/src/topology/dapm.c
index e830751..8c585a7 100644
--- a/src/topology/dapm.c
+++ b/src/topology/dapm.c
@@ -39,14 +39,6 @@ static const struct map_elem widget_map[] = {
 	{"dai_link", SND_SOC_TPLG_DAPM_DAI_LINK},
 };
 
-/* mapping of widget kcontrol text names to types */
-static const struct map_elem widget_control_map[] = {
-	{"volsw", SND_SOC_TPLG_DAPM_CTL_VOLSW},
-	{"enum_double", SND_SOC_TPLG_DAPM_CTL_ENUM_DOUBLE},
-	{"enum_virt", SND_SOC_TPLG_DAPM_CTL_ENUM_VIRT},
-	{"enum_value", SND_SOC_TPLG_DAPM_CTL_ENUM_VALUE},
-};
-
 static int lookup_widget(const char *w)
 {
 	unsigned int i;
-- 
2.9.3

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-01-02 14:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-29 15:44 [PATCH][alsa-lib] topology: fix unused-const-variable warning Takashi Sakamoto
2016-12-17  0:39 ` Takashi Sakamoto
2016-12-23  8:49   ` Liam Girdwood
2016-12-23 14:48     ` Lin, Mengdong
2016-12-23 15:08       ` Takashi Sakamoto
2016-12-23 15:23         ` Liam Girdwood
2016-12-23 15:34           ` Takashi Sakamoto
2016-12-27  9:57             ` Lin, Mengdong
2017-01-02 14:22             ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.