diff options
author | Thomas Huth <thuth@redhat.com> | 2015-04-28 12:50:07 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-04-28 17:42:56 +0200 |
commit | 51f7cb974ba1af9f68302f2bae4bf0161fb0ab03 (patch) | |
tree | d9007ce9a960ff05e1634441be560b978f5a2b62 /hw/virtio/virtio-pci.c | |
parent | 7824df3889499acc7466317175a3fb24a0824002 (diff) |
pci: Merge pci_nic_init() into pci_nic_init_nofail()
The error reporting in pci_nic_init() is quite erratic: Some errors
are printed directly with error_report(), and some are passed back
to the caller pci_nic_init_nofail() via an Error pointer.
Since pci_nic_init() is only used by pci_nic_init_nofail(), the
functions can be simply merged to clean up this inconsistency.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/virtio/virtio-pci.c')
0 files changed, 0 insertions, 0 deletions