summaryrefslogtreecommitdiff
path: root/src/pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm.c')
-rw-r--r--src/pcm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pcm.c b/src/pcm.c
index 895d624..0d06c67 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -638,10 +638,8 @@ int
snd_pcm_format_mask_test(const snd_pcm_format_mask_t *mask, snd_pcm_format_t val)
{
for (uint8_t i = 0; i < mask->nmemb; ++i) {
- if (mask->fmts[i] != val)
- continue;
-
- return true;
+ if (mask->fmts[i] == val)
+ return true;
}
return false;
}