summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2016-07-11 21:05:58 +0900
committerTakashi Iwai <tiwai@suse.de>2016-07-11 15:24:12 +0200
commit5235105ca3829eb344a158d577e24e92cd2f1961 (patch)
treeac7e4527d73d46d119d115be20da0c3cb839097f
parent87afc50e8116f0f41025f7d41dc4d1405885d704 (diff)
downloadalsa-lib-5235105ca3829eb344a158d577e24e92cd2f1961.tar.gz
topology: remove unused variable in get_tokens()
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>
-rw-r--r--src/topology/data.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/topology/data.c b/src/topology/data.c
index 9f8d5d01..4ecd2c2f 100644
--- a/src/topology/data.c
+++ b/src/topology/data.c
@@ -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) {