qemu-patch-raspberry4/hw/pci
Mao Zhongyi 673b0d7ccc pci: Clean up error checking in pci_add_capability()
On success, pci_add_capability2() returns a positive value. On
failure, it sets an error and return a negative value.

pci_add_capability() laboriously checks this behavior. No other
caller does. Drop the checks from pci_add_capability().

Cc: mst@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>
2017-07-03 22:29:48 +03:00
..
Makefile.objs pci-hotplug-old: Has been dead for five major releases, bury 2015-03-01 12:37:54 +01:00
msi.c pci: Convert msi_init() to Error and fix callers to check it 2016-07-05 13:14:41 +03:00
msix.c msix: trace control bit write op 2017-06-06 20:18:35 +02:00
pci-stub.c pci: Clean up includes 2016-01-29 15:07:24 +00:00
pci.c pci: Clean up error checking in pci_add_capability() 2017-07-03 22:29:48 +03:00
pci_bridge.c Fix some typos found by codespell 2016-05-18 15:04:27 +03:00
pci_host.c pci: Clean up includes 2016-01-29 15:07:24 +00:00
pcie.c hw/virtio: fix Link Control Register for PCI Express virtio devices 2017-03-16 01:46:41 +02:00
pcie_aer.c vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00
pcie_host.c pci: Clean up includes 2016-01-29 15:07:24 +00:00
pcie_port.c pci: Clean up includes 2016-01-29 15:07:24 +00:00
shpc.c migration: extend VMStateInfo 2017-01-24 17:54:47 +00:00
slotid_cap.c pci: Clean up includes 2016-01-29 15:07:24 +00:00
trace-events msix: trace control bit write op 2017-06-06 20:18:35 +02:00