mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	topology: pcm: Remove unused variables
Fix gcc warnings:
  pcm.c: In function ‘tplg_parse_stream_cfg’:
  pcm.c:160:6: warning: unused variable ‘ret’ [-Wunused-variable]
    int ret;
        ^
  pcm.c: In function ‘split_format’:
  pcm.c:267:13: warning: unused variable ‘ret’ [-Wunused-variable]
    int i = 0, ret;
               ^
Signed-off-by: Takashi Iwai <tiwai@suse.de>
			
			
This commit is contained in:
		
							parent
							
								
									e38b13f128
								
							
						
					
					
						commit
						9a2fe5399c
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -157,7 +157,6 @@ static int tplg_parse_stream_cfg(snd_tplg_t *tplg ATTRIBUTE_UNUSED,
 | 
				
			||||||
	struct snd_soc_tplg_stream *stream;
 | 
						struct snd_soc_tplg_stream *stream;
 | 
				
			||||||
	const char *id, *val;
 | 
						const char *id, *val;
 | 
				
			||||||
	snd_pcm_format_t format;
 | 
						snd_pcm_format_t format;
 | 
				
			||||||
	int ret;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	snd_config_get_id(cfg, &id);
 | 
						snd_config_get_id(cfg, &id);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -264,7 +263,7 @@ static int split_format(struct snd_soc_tplg_stream_caps *caps, char *str)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	char *s = NULL;
 | 
						char *s = NULL;
 | 
				
			||||||
	snd_pcm_format_t format;
 | 
						snd_pcm_format_t format;
 | 
				
			||||||
	int i = 0, ret;
 | 
						int i = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	s = strtok(str, ",");
 | 
						s = strtok(str, ",");
 | 
				
			||||||
	while ((s != NULL) && (i < SND_SOC_TPLG_MAX_FORMATS)) {
 | 
						while ((s != NULL) && (i < SND_SOC_TPLG_MAX_FORMATS)) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue