Patchset tweaks bitset operations by changing a constant to unsigned long, introduces a static compile check and simplifies bitset operations. Also resolves Coverity CID 1563776.
v2..v3: * Multiply (sizeof(d->mux_bitset) * BITS_PER_BYTE) to get number of bits (thanks Paolo Bonzini for noticing that) * Rebase on latest master v1..v2: * Rebase on latest master, incorporate review tags. Roman Penyaev (2): chardev/char-mux: shift unsigned long to avoid 32-bit overflow chardev/char-mux: make boolean bit check instead of find_next_bit() chardev/char-mux.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) Signed-off-by: Roman Penyaev <[email protected]> Reviewed-by: "Marc-André Lureau" <[email protected]> Cc: Peter Maydell <[email protected]> Cc: Paolo Bonzini <[email protected]> Reviewed-by: Clément Mathieu--Drif <[email protected]> Cc: [email protected] -- 2.34.1
