virtio: fix check when mapping PCI resources
authorDavid Marchand <david.marchand@6wind.com>
Tue, 16 Feb 2016 20:37:02 +0000 (21:37 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Feb 2016 21:55:44 +0000 (22:55 +0100)
According to the api, rte_eal_pci_map_device is only successful when
returning 0.

Fixes: 6ba1f63b5ab0 ("virtio: support specification 1.0")

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>

No differences found