mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	topology: Remove unused variables
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>
This commit is contained in:
		
							parent
							
								
									a661f144d9
								
							
						
					
					
						commit
						605551aec6
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
					@ -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 tplg_elem *ref_elem = NULL;
 | 
				
			||||||
	struct snd_soc_tplg_pcm *pcm;
 | 
						struct snd_soc_tplg_pcm *pcm;
 | 
				
			||||||
	struct snd_soc_tplg_stream_caps *caps;
 | 
						struct snd_soc_tplg_stream_caps *caps;
 | 
				
			||||||
	struct snd_soc_tplg_stream *stream;
 | 
					 | 
				
			||||||
	unsigned int i;
 | 
						unsigned int i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pcm = elem->pcm;
 | 
						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 tplg_elem *elem = private;
 | 
				
			||||||
	struct snd_soc_tplg_pcm *pcm;
 | 
						struct snd_soc_tplg_pcm *pcm;
 | 
				
			||||||
	const char *id, *value;
 | 
						const char *id, *value;
 | 
				
			||||||
	int err, stream;
 | 
						int stream;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pcm = elem->pcm;
 | 
						pcm = elem->pcm;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -384,7 +383,6 @@ int tplg_parse_be(snd_tplg_t *tplg,
 | 
				
			||||||
	snd_config_iterator_t i, next;
 | 
						snd_config_iterator_t i, next;
 | 
				
			||||||
	snd_config_t *n;
 | 
						snd_config_t *n;
 | 
				
			||||||
	const char *id, *val = NULL;
 | 
						const char *id, *val = NULL;
 | 
				
			||||||
	int err;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_BE);
 | 
						elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_BE);
 | 
				
			||||||
	if (!elem)
 | 
						if (!elem)
 | 
				
			||||||
| 
						 | 
					@ -438,7 +436,6 @@ int tplg_parse_cc(snd_tplg_t *tplg,
 | 
				
			||||||
	snd_config_iterator_t i, next;
 | 
						snd_config_iterator_t i, next;
 | 
				
			||||||
	snd_config_t *n;
 | 
						snd_config_t *n;
 | 
				
			||||||
	const char *id, *val = NULL;
 | 
						const char *id, *val = NULL;
 | 
				
			||||||
	int err;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_CC);
 | 
						elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_CC);
 | 
				
			||||||
	if (!elem)
 | 
						if (!elem)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue