mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pipewire-alsa: Fix build warning
`pos < 0` always evaluates to false, so remove this condition.
This commit is contained in:
parent
f0d3a7cf49
commit
cff127a138
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
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 SPA_AUDIO_CHANNEL_UNKNOWN;
|
||||||
return chmap_info[pos].channel;
|
return chmap_info[pos].channel;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue