KVM: x86: Clean up directed yield API for "has pending interrupt"
authorSean Christopherson <seanjc@google.com>
Wed, 10 Jan 2024 00:39:37 +0000 (16:39 -0800)
committerSean Christopherson <seanjc@google.com>
Fri, 23 Feb 2024 00:27:40 +0000 (16:27 -0800)
commit322d79f1db4b033844dcb2de43abd570abbd04b4
tree6e5cf85f6283317e82ab2ce4574a21c105d06e69
parent9b8615c5d37fca15b330882bafceaf24f2398352
KVM: x86: Clean up directed yield API for "has pending interrupt"

Directly return the boolean result of whether or not a vCPU has a pending
interrupt instead of effectively doing:

  if (true)
return true;

  return false;

Reviewed-by: Yuan Yao <yuan.yao@intel.com>
Link: https://lore.kernel.org/r/20240110003938.490206-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c