]> git.alsa-project.org Git - alsa-lib.git/commitdiff
topology: Remove unused variables
authorMengdong Lin <mengdong.lin@linux.intel.com>
Wed, 18 Nov 2015 07:23:19 +0000 (02:23 -0500)
committerTakashi Iwai <tiwai@suse.de>
Wed, 18 Nov 2015 13:55:30 +0000 (14:55 +0100)
Fix gcc warning when -Wunused-variable is set.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/topology/pcm.c

index 9b7e402e942410c4068fab0e071cffdd20a0444a..8eb62e46bfc26565231fd0a8435d6c526186e65d 100644 (file)
@@ -58,7 +58,6 @@ static int tplg_build_pcm_caps(snd_tplg_t *tplg, struct tplg_elem *elem)
        struct tplg_elem *ref_elem = NULL;
        struct snd_soc_tplg_pcm *pcm;
        struct snd_soc_tplg_stream_caps *caps;
-       struct snd_soc_tplg_stream *stream;
        unsigned int i;
 
        pcm = elem->pcm;
@@ -273,7 +272,7 @@ int tplg_parse_stream_caps(snd_tplg_t *tplg, snd_config_t *cfg,
        struct tplg_elem *elem = private;
        struct snd_soc_tplg_pcm *pcm;
        const char *id, *value;
-       int err, stream;
+       int stream;
 
        pcm = elem->pcm;
 
@@ -384,7 +383,6 @@ int tplg_parse_be(snd_tplg_t *tplg,
        snd_config_iterator_t i, next;
        snd_config_t *n;
        const char *id, *val = NULL;
-       int err;
 
        elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_BE);
        if (!elem)
@@ -438,7 +436,6 @@ int tplg_parse_cc(snd_tplg_t *tplg,
        snd_config_iterator_t i, next;
        snd_config_t *n;
        const char *id, *val = NULL;
-       int err;
 
        elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_CC);
        if (!elem)