aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2024-08-02 20:01:35 +0000
committerSean Christopherson <[email protected]>2024-10-30 21:29:31 +0000
commit6cf9ef23d9428ca4950a818e3e70bd818748815a (patch)
tree64a59935364934ed7cc08379a58c4c2fd1b10b3b /rust/helpers/helpers.c
parentKVM: Rework core loop of kvm_vcpu_on_spin() to use a single for-loop (diff)
downloadkernel-6cf9ef23d9428ca4950a818e3e70bd818748815a.tar.gz
kernel-6cf9ef23d9428ca4950a818e3e70bd818748815a.zip
KVM: Return '0' directly when there's no task to yield to
Do "return 0" instead of initializing and returning a local variable in kvm_vcpu_yield_to(), e.g. so that it's more obvious what the function returns if there is no task. No functional change intended. Acked-by: Oliver Upton <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions