diff options
author | Roman Penyaev <r.peniaev@gmail.com> | 2024-11-29 11:32:39 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2024-12-02 16:23:12 +0400 |
commit | e6214fd6d48e704ed3aed6ea2053a9756d0ca13f (patch) | |
tree | b7ba9041f83f03d90e2a740afa7212fe8237f073 /block/monitor | |
parent | 188df56eab8ed960e407762e31a35fc666355132 (diff) |
chardev/char-mux: make boolean bit check instead of find_next_bit()
This patch simplifies (and makes less confusing) bit checks by
replacing `find_next_bit()` calls with boolean AND operation.
Resolves: Coverity CID 1563776
Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
Reviewed-by: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Clément Mathieu--Drif <clement.mathieu--drif@eviden.com>
Cc: qemu-devel@nongnu.org
Message-ID: <20241129103239.464061-3-r.peniaev@gmail.com>
Diffstat (limited to 'block/monitor')
0 files changed, 0 insertions, 0 deletions