]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/xive2: Fix logical / bitwise comparison typo
authorNicholas Piggin <npiggin@gmail.com>
Mon, 17 Mar 2025 03:20:49 +0000 (13:20 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 20 Mar 2025 09:57:43 +0000 (19:57 +1000)
commite0b9357337e4005d7915d8c746eb3ce66c61fac0
tree89ab81d566998f434822ea2956bd28d4c0fb5a35
parent344921309d933547974c2e85c52e2294513d9c45
ppc/xive2: Fix logical / bitwise comparison typo

The comparison as written is always false (perhaps confusingly, because
the functions/macros are not really booleans but return 0 or the tested
bit value). Change to use logical-and.

Resolves: Coverity CID 1593721
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/intc/xive2.c