cryptodev: set PCI info only when device is PCI
[dpdk.git] / lib / librte_cryptodev / rte_cryptodev.c
index 46b9adc..8e5382d 100644 (file)
@@ -1139,7 +1139,6 @@ rte_cryptodev_info_get(uint8_t dev_id, struct rte_cryptodev_info *dev_info)
        RTE_FUNC_PTR_OR_RET(*dev->dev_ops->dev_infos_get);
        (*dev->dev_ops->dev_infos_get)(dev, dev_info);
 
-       dev_info->pci_dev = RTE_DEV_TO_PCI(dev->device);
        dev_info->driver_name = dev->device->driver->name;
 }