Re: [PATCH] KVM: remove redundant code in kvm_arch_vm_ioctl

2019-10-21 Thread Paolo Bonzini
On 21/10/19 10:16, Thomas Gleixner wrote: > Can you please get rid of that odd jump label completely? > > if (irqchip_kernel(kvm)) > r = kvm_vm_ioctl_set_irqchip(kvm, chip); Keeping the label has the advantage of making the get and set cases a bit more similar

Re: [PATCH] KVM: remove redundant code in kvm_arch_vm_ioctl

2019-10-21 Thread linmiaohe
On Mon, 21 Oct 2019, tglx wrote: >On Mon, 21 Oct 2019, Miaohe Lin wrote: >> 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 ass

Re: [PATCH] KVM: remove redundant code in kvm_arch_vm_ioctl

2019-10-21 Thread Thomas Gleixner
On Mon, 21 Oct 2019, Miaohe Lin wrote: > 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