]> git.proxmox.com Git - mirror_qemu.git/commit
i386/kvm/pci-assign: Use errp directly rather than local_err
authorMao Zhongyi <maozy.fnst@cn.fujitsu.com>
Tue, 27 Jun 2017 06:16:55 +0000 (14:16 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 Jul 2017 19:29:49 +0000 (22:29 +0300)
commitc0e9067902a35f4b5cc24b0bc84dbc5872e9cf86
treea8448c4fa6135c45bd5373aa4a2165cab25df567
parent6b728b31163bbd0788fe7d537931c4624cd24215
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>
hw/i386/kvm/pci-assign.c