mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
344921309d
commit
e0b9357337
1 changed files with 1 additions and 1 deletions
|
@ -1344,7 +1344,7 @@ static void xive2_router_end_notify(Xive2Router *xrtr, uint8_t end_blk,
|
|||
return;
|
||||
}
|
||||
|
||||
if (xive2_end_is_crowd(&end) & !xive2_end_is_ignore(&end)) {
|
||||
if (xive2_end_is_crowd(&end) && !xive2_end_is_ignore(&end)) {
|
||||
qemu_log_mask(LOG_GUEST_ERROR,
|
||||
"XIVE: invalid END, 'crowd' bit requires 'ignore' bit\n");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue