diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-11-01 03:50:42 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-11-01 03:50:42 +0200 |
commit | 78ba923fc1236a2653f906ad04aca7aba773a40d (patch) | |
tree | 56db5c8bbb1aaa58be5b66d778a61606a9642b64 | |
parent | 18e8bdd171a07b8ab59c568ff8f92a16c9e56d81 (diff) |
format_mask_test: dont use continue
-rw-r--r-- | src/pcm.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; } |