]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: Return '0' directly when there's no task to yield to
authorSean Christopherson <seanjc@google.com>
Fri, 2 Aug 2024 20:01:35 +0000 (13:01 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 30 Oct 2024 21:29:31 +0000 (14:29 -0700)
commit6cf9ef23d9428ca4950a818e3e70bd818748815a
tree64a59935364934ed7cc08379a58c4c2fd1b10b3b
parent7e513617da71b1c0b6497cda1ddfc86a7c4d1765
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 <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240802200136.329973-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
virt/kvm/kvm_main.c