mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-19 16:01:45 +00: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
|
@ -50,7 +50,7 @@ static const char *port_types[] = {
|
|||
|
||||
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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue