KVM: selftests: Return an 'unsigned int' from kvm_check_cap()
Return an 'unsigned int' instead of a signed 'int' from kvm_check_cap(), to make it more obvious that kvm_check_cap() can never return a negative value due to its assertion that the return is ">= 0". Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
0326045298
commit
d8ba3f14a5
@@ -213,7 +213,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
/* Check the extension for binary stats */
|
||||
if (kvm_check_cap(KVM_CAP_BINARY_STATS_FD) <= 0) {
|
||||
if (!kvm_check_cap(KVM_CAP_BINARY_STATS_FD)) {
|
||||
print_skip("Binary form statistics interface is not supported");
|
||||
exit(KSFT_SKIP);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user