Skip to contentSkip to conversation

KVM: remove redundant code in kvm_arch_vm_ioctl

PATCH linmiaohe 1 participant 1 message Oct 21, 2019 KVM

lore
Share & tools
lore

linmiaohe

author
#0 lore raw
Quoted 6 lines · tglx
Quoted 4 lines · Miaohe Lin

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.

Quoted 6 lines

Can you please get rid of that odd jump label completely?

if (irqchip_kernel(kvm))

			r = kvm_vm_ioctl_set_irqchip(kvm, chip);

Hmm?

Sure, thanks for your reply. I will send patch v2 to complete it. Thanks again.