]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86: hyperv: delete dead code in kvm_hv_hypercall()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 17 Mar 2018 11:48:27 +0000 (14:48 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 23 Mar 2018 19:11:01 +0000 (20:11 +0100)
commitc379deb2df82b0212a173d63fcaad43e0c922ea3
tree0dc42a51072b0951c82bd8ee639b22eb355f1fb5
parenta28601a8532a782b19961207709b01b6116fa935
kvm: x86: hyperv: delete dead code in kvm_hv_hypercall()

"rep_done" is always zero so the "(((u64)rep_done & 0xfff) << 32)"
expression is just zero.  We can remove the "res" temporary variable as
well and just use "ret" directly.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/hyperv.c