diff --git a/lib/librte_rawdev/rte_rawdev.c b/lib/librte_rawdev/rte_rawdev.c index e634a567fa..8f84d0b228 100644 --- a/lib/librte_rawdev/rte_rawdev.c +++ b/lib/librte_rawdev/rte_rawdev.c @@ -92,11 +92,9 @@ rte_rawdev_info_get(uint16_t dev_id, struct rte_rawdev_info *dev_info) (*rawdev->dev_ops->dev_info_get)(rawdev, dev_info->dev_private); } - if (dev_info) { - - dev_info->driver_name = rawdev->driver_name; - dev_info->device = rawdev->device; - } + dev_info->driver_name = rawdev->driver_name; + dev_info->device = rawdev->device; + dev_info->socket_id = rawdev->socket_id; return 0; }