summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-11-01 03:50:42 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-11-01 03:50:42 +0200
commit78ba923fc1236a2653f906ad04aca7aba773a40d (patch)
tree56db5c8bbb1aaa58be5b66d778a61606a9642b64
parent18e8bdd171a07b8ab59c568ff8f92a16c9e56d81 (diff)
format_mask_test: dont use continue
-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;
}