diff options
| author | Mao Zhongyi | 2017-06-27 08:16:55 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2017-07-03 21:29:49 +0200 |
| commit | c0e9067902a35f4b5cc24b0bc84dbc5872e9cf86 (patch) | |
| tree | a8448c4fa6135c45bd5373aa4a2165cab25df567 /scripts | |
| parent | i386/kvm/pci-assign: Fix return type of verify_irqchip_kernel() (diff) | |
| download | qemu-c0e9067902a35f4b5cc24b0bc84dbc5872e9cf86.tar.gz qemu-c0e9067902a35f4b5cc24b0bc84dbc5872e9cf86.tar.xz qemu-c0e9067902a35f4b5cc24b0bc84dbc5872e9cf86.zip | |
i386/kvm/pci-assign: Use errp directly rather than local_err
In assigned_device_pci_cap_init(), first, error messages are filled
to a local_err variable, then through error_propagate() pass to
the parameter of errp. It leads to cumbersome code. In order to
avoid the extra local_err and error_propagate(), drop it and use
errp instead.
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')
0 files changed, 0 insertions, 0 deletions
