diff options
| author | Mao Zhongyi | 2017-06-27 08:16:54 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2017-07-03 21:29:49 +0200 |
| commit | 6b728b31163bbd0788fe7d537931c4624cd24215 (patch) | |
| tree | d4b9dd346ffa8527a952139da2e5d58667ce80d8 /scripts/switch-timer-api | |
| parent | pci: Convert shpc_init() to Error (diff) | |
| download | qemu-6b728b31163bbd0788fe7d537931c4624cd24215.tar.gz qemu-6b728b31163bbd0788fe7d537931c4624cd24215.tar.xz qemu-6b728b31163bbd0788fe7d537931c4624cd24215.zip | |
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>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
