OSDN Git Service

pci: Set err to errp directly rather than through error_propagate()
authorMao Zhongyi <maozy.fnst@cn.fujitsu.com>
Sat, 9 Sep 2017 06:22:26 +0000 (14:22 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 15 Oct 2017 02:54:40 +0000 (05:54 +0300)
commit06592d7e28794dcd93dbd5186910ba8c987453ba
tree6cb64fcd498eea0147460600bd793c60b1704ab4
parent8b3d26342c4aa171e759e6392fe3b742759d4963
pci: Set err to errp directly rather than through error_propagate()

ioh3420_interrupts_init() pass error message to local_err, then
propagate it to errp by error_propagate(), which is not necessary.
So eliminate it and pass errp directly instead of local_err.

Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Marcel Apfelbaum <marcel@redhat.com>
Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci-bridge/ioh3420.c