]> git.alsa-project.org Git - alsa-lib.git/commitdiff
topology: fix unused-const-variable warning
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 29 Nov 2016 15:44:32 +0000 (00:44 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Jan 2017 14:05:29 +0000 (15:05 +0100)
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>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/topology/dapm.c

index e830751399df54090107a8d25042404127469635..8c585a7091dda880ab2a367952d5b73cb238a43b 100644 (file)
@@ -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;