Skip to content

Commit 7ca7f3b

Browse files
YANG LIbonzini
authored andcommitted
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]>
1 parent 8fc5172 commit 7ca7f3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/x86.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8029,7 +8029,7 @@ static int kvm_pv_clock_pairing(struct kvm_vcpu *vcpu, gpa_t paddr,
80298029
if (clock_type != KVM_CLOCK_PAIRING_WALLCLOCK)
80308030
return -KVM_EOPNOTSUPP;
80318031

8032-
if (kvm_get_walltime_and_clockread(&ts, &cycle) == false)
8032+
if (!kvm_get_walltime_and_clockread(&ts, &cycle))
80338033
return -KVM_EOPNOTSUPP;
80348034

80358035
clock_pairing.sec = ts.tv_sec;

0 commit comments

Comments
 (0)