diff --git a/spa/plugins/alsa/acp/compat.c b/spa/plugins/alsa/acp/compat.c index 3fc8f4581..770344403 100644 --- a/spa/plugins/alsa/acp/compat.c +++ b/spa/plugins/alsa/acp/compat.c @@ -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]; }