pipewire-alsa: Fix build warning

`pos < 0` always evaluates to false, so remove this condition.
This commit is contained in:
Philippe Normand 2021-10-23 14:27:18 +01:00 committed by Wim Taymans
parent f0d3a7cf49
commit cff127a138

View file

@ -766,7 +766,7 @@ static enum snd_pcm_chmap_position channel_to_chmap(enum spa_audio_channel chann
static enum spa_audio_channel chmap_to_channel(enum snd_pcm_chmap_position pos)
{
if (pos < 0 || pos >= SPA_N_ELEMENTS(chmap_info))
if (pos >= SPA_N_ELEMENTS(chmap_info))
return SPA_AUDIO_CHANNEL_UNKNOWN;
return chmap_info[pos].channel;
}