mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	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>
			
			
This commit is contained in:
		
							parent
							
								
									87afc50e81
								
							
						
					
					
						commit
						5235105ca3
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -273,7 +273,6 @@ static struct tplg_elem *get_tokens(snd_tplg_t *tplg, struct tplg_elem *elem)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct tplg_ref *ref;
 | 
						struct tplg_ref *ref;
 | 
				
			||||||
	struct list_head *base, *pos;
 | 
						struct list_head *base, *pos;
 | 
				
			||||||
	int err = 0;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	base = &elem->ref_list;
 | 
						base = &elem->ref_list;
 | 
				
			||||||
	list_for_each(pos, base) {
 | 
						list_for_each(pos, base) {
 | 
				
			||||||
| 
						 | 
					@ -299,7 +298,6 @@ static bool has_tuples(struct tplg_elem *elem)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct tplg_ref *ref;
 | 
						struct tplg_ref *ref;
 | 
				
			||||||
	struct list_head *base, *pos;
 | 
						struct list_head *base, *pos;
 | 
				
			||||||
	int err = 0;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	base = &elem->ref_list;
 | 
						base = &elem->ref_list;
 | 
				
			||||||
	list_for_each(pos, base) {
 | 
						list_for_each(pos, base) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue