mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pipewire-alsa: fix scan-build errors for unused variables
All cases of value stored but never read
This commit is contained in:
		
							parent
							
								
									5596e350ea
								
							
						
					
					
						commit
						f3f915e897
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -461,13 +461,12 @@ static int snd_pcm_pipewire_prepare(snd_pcm_ioplug_t *io)
 | 
				
			||||||
	uint8_t buffer[1024];
 | 
						uint8_t buffer[1024];
 | 
				
			||||||
	struct spa_pod_builder b = SPA_POD_BUILDER_INIT(buffer, sizeof(buffer));
 | 
						struct spa_pod_builder b = SPA_POD_BUILDER_INIT(buffer, sizeof(buffer));
 | 
				
			||||||
	struct pw_properties *props;
 | 
						struct pw_properties *props;
 | 
				
			||||||
	int res;
 | 
					 | 
				
			||||||
	uint32_t min_period;
 | 
						uint32_t min_period;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_thread_loop_lock(pw->main_loop);
 | 
						pw_thread_loop_lock(pw->main_loop);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	snd_pcm_sw_params_alloca(&swparams);
 | 
						snd_pcm_sw_params_alloca(&swparams);
 | 
				
			||||||
	if ((res = snd_pcm_sw_params_current(io->pcm, swparams)) == 0) {
 | 
						if (snd_pcm_sw_params_current(io->pcm, swparams) == 0) {
 | 
				
			||||||
		snd_pcm_sw_params_get_avail_min(swparams, &pw->min_avail);
 | 
							snd_pcm_sw_params_get_avail_min(swparams, &pw->min_avail);
 | 
				
			||||||
		snd_pcm_sw_params_get_boundary(swparams, &pw->boundary);
 | 
							snd_pcm_sw_params_get_boundary(swparams, &pw->boundary);
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue