aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYANG LI <[email protected]>2021-01-11 17:32:58 +0800
committerPaolo Bonzini <[email protected]>2021-02-04 05:27:16 -0500
commit7ca7f3b944929c99637522d849138ba15f97e3fe (patch)
tree20cef57d1686ba055b34d5d7bea6d16b098d2d55
parent8fc517267fb28576dfca2380cc2497a2454b8fae (diff)
x86: kvm: style: Simplify bool comparison
Fix the following coccicheck warning: ./arch/x86/kvm/x86.c:8012:5-48: WARNING: Comparison to bool Signed-off-by: YANG LI <[email protected]> Reported-by: Abaci Robot <[email protected]> Message-Id: <[email protected]> Reviewed-by: Vitaly Kuznetsov <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index fa1ec597d510..8b8f5ee839c2 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -8029,7 +8029,7 @@ static int kvm_pv_clock_pairing(struct kvm_vcpu *vcpu, gpa_t paddr,
if (clock_type != KVM_CLOCK_PAIRING_WALLCLOCK)
return -KVM_EOPNOTSUPP;
- if (kvm_get_walltime_and_clockread(&ts, &cycle) == false)
+ if (!kvm_get_walltime_and_clockread(&ts, &cycle))
return -KVM_EOPNOTSUPP;
clock_pairing.sec = ts.tv_sec;