OSDN Git Service

i386/kvm/pci-assign: Fix return type of verify_irqchip_kernel()
authorMao Zhongyi <maozy.fnst@cn.fujitsu.com>
Tue, 27 Jun 2017 06:16:54 +0000 (14:16 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 Jul 2017 19:29:49 +0000 (22:29 +0300)
commit6b728b31163bbd0788fe7d537931c4624cd24215
treed4b9dd346ffa8527a952139da2e5d58667ce80d8
parent344475e77d9acb981df958304f0631163dff7d65
i386/kvm/pci-assign: Fix return type of verify_irqchip_kernel()

When the function no success value to transmit, it usually make the
function return void. It has turned out not to be a success, because
it means that the extra local_err variable and error_propagate() will
be needed. It leads to cumbersome code, therefore, transmit success/
failure in the return value is worth. So fix the return type to avoid
it.

Cc: pbonzini@redhat.com
Cc: rth@twiddle.net
Cc: ehabkost@redhat.com
Cc: mst@redhat.com
Cc: armbru@redhat.com
Cc: marcel@redhat.com
Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/kvm/pci-assign.c