mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: alsa: Fix build warning
`type >=0` always evaluates to true, so remove this condition.
This commit is contained in:
		
							parent
							
								
									397a67889a
								
							
						
					
					
						commit
						f0d3a7cf49
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -50,7 +50,7 @@ static const char *port_types[] = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char *str_port_type(pa_device_port_type_t type)
 | 
					static const char *str_port_type(pa_device_port_type_t type)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	int idx = (type >= 0 && type < PA_ELEMENTSOF(port_types)) ? type : 0;
 | 
						int idx = (type < PA_ELEMENTSOF(port_types)) ? type : 0;
 | 
				
			||||||
	return port_types[idx];
 | 
						return port_types[idx];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue