]> git.alsa-project.org Git - alsa-lib.git/commitdiff
topology: remove unused variable in get_tokens()
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 11 Jul 2016 12:05:58 +0000 (21:05 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 11 Jul 2016 13:24:12 +0000 (15:24 +0200)
This commit fixes below compiler warnings.

data.c: In function ‘get_tokens’:
data.c:276:6: warning: unused variable ‘err’ [-Wunused-variable]
  int err = 0;
      ^
data.c: In function ‘has_tuples’:
data.c:302:6: warning: unused variable ‘err’ [-Wunused-variable]
  int err = 0;
      ^

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/topology/data.c

index 9f8d5d016858518d454bb4862b446e0097a2d528..4ecd2c2ff76c791f1fff8c667df9610b45d061e5 100644 (file)
@@ -273,7 +273,6 @@ static struct tplg_elem *get_tokens(snd_tplg_t *tplg, struct tplg_elem *elem)
 {
        struct tplg_ref *ref;
        struct list_head *base, *pos;
-       int err = 0;
 
        base = &elem->ref_list;
        list_for_each(pos, base) {
@@ -299,7 +298,6 @@ static bool has_tuples(struct tplg_elem *elem)
 {
        struct tplg_ref *ref;
        struct list_head *base, *pos;
-       int err = 0;
 
        base = &elem->ref_list;
        list_for_each(pos, base) {