diff options
author | Mao Zhongyi <maozy.fnst@cn.fujitsu.com> | 2017-06-27 14:16:55 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-07-03 22:29:49 +0300 |
commit | c0e9067902a35f4b5cc24b0bc84dbc5872e9cf86 (patch) | |
tree | a8448c4fa6135c45bd5373aa4a2165cab25df567 /hw/nvram | |
parent | 6b728b31163bbd0788fe7d537931c4624cd24215 (diff) | |
download | qemu-c0e9067902a35f4b5cc24b0bc84dbc5872e9cf86.zip qemu-c0e9067902a35f4b5cc24b0bc84dbc5872e9cf86.tar.gz qemu-c0e9067902a35f4b5cc24b0bc84dbc5872e9cf86.tar.bz2 |
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 'hw/nvram')
0 files changed, 0 insertions, 0 deletions