diff options
author | Kaixu Xia <kaixuxia@tencent.com> | 2020-11-07 14:26:22 +0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-12-15 22:22:06 +1100 |
commit | 13751f8747519fe3bdc738fa6d802fbd94a85ac4 (patch) | |
tree | 92c193c7e21bb1a9253944f1605614fb17189aff /arch/powerpc | |
parent | 1791ebd131c46539b024c0f2ebf12b6c88a265b9 (diff) | |
download | linux-13751f8747519fe3bdc738fa6d802fbd94a85ac4.tar.gz linux-13751f8747519fe3bdc738fa6d802fbd94a85ac4.tar.bz2 linux-13751f8747519fe3bdc738fa6d802fbd94a85ac4.zip |
KVM: PPC: Book3S: Assign boolean values to a bool variable
Fix the following coccinelle warnings:
./arch/powerpc/kvm/book3s_xics.c:476:3-15: WARNING: Assignment of 0/1 to bool variable
./arch/powerpc/kvm/book3s_xics.c:504:3-15: WARNING: Assignment of 0/1 to bool variable
Reported-by: Tosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Acked-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1604730382-5810-1-git-send-email-kaixuxia@tencent.com
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kvm/book3s_xics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kvm/book3s_xics.c b/arch/powerpc/kvm/book3s_xics.c index 5fee5a11550d..303e3cb096db 100644 --- a/arch/powerpc/kvm/book3s_xics.c +++ b/arch/powerpc/kvm/book3s_xics.c @@ -473,7 +473,7 @@ static void icp_deliver_irq(struct kvmppc_xics *xics, struct kvmppc_icp *icp, arch_spin_unlock(&ics->lock); local_irq_restore(flags); new_irq = reject; - check_resend = 0; + check_resend = false; goto again; } } else { @@ -501,7 +501,7 @@ static void icp_deliver_irq(struct kvmppc_xics *xics, struct kvmppc_icp *icp, state->resend = 0; arch_spin_unlock(&ics->lock); local_irq_restore(flags); - check_resend = 0; + check_resend = false; goto again; } } |