Commit 6cf9ef2
committed
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>1 parent 7e51361 commit 6cf9ef2
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3772 | 3772 | | |
3773 | 3773 | | |
3774 | 3774 | | |
3775 | | - | |
| 3775 | + | |
3776 | 3776 | | |
3777 | 3777 | | |
3778 | 3778 | | |
3779 | 3779 | | |
3780 | 3780 | | |
3781 | 3781 | | |
3782 | 3782 | | |
3783 | | - | |
| 3783 | + | |
3784 | 3784 | | |
3785 | 3785 | | |
3786 | 3786 | | |
| |||
0 commit comments