]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: remove redundant code in kvm_arch_vm_ioctl
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 21 Oct 2019 02:52:56 +0000 (10:52 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 11:34:52 +0000 (13:34 +0200)
commitb5c9339e92cd3e0d1b9154b74481f376c72d4f69
tree8d17c49077b48daedb653fd0c91e9160df16a275
parenta21e9c7a14e90372add271dfef16019d9a50b43b
KVM: remove redundant code in kvm_arch_vm_ioctl

If we reach here with r = 0, we will reassign r = 0
unnecesarry, then do the label set_irqchip_out work.
If we reach here with r != 0, then we will do the label
work directly. So this if statement and r = 0 assignment
is redundant.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c