spa: alsa: Fix build warning

`type >=0` always evaluates to true, so remove this condition.
This commit is contained in:
Philippe Normand 2021-10-23 14:26:21 +01:00 committed by Wim Taymans
parent 397a67889a
commit f0d3a7cf49

View file

@ -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];
}