The rawdev info struct has a socket_id field which was not filled in.

We can also omit the checks for the parameter struct being null, since
that is previously checked in the function.

Cc: sta...@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richard...@intel.com>
---
 lib/librte_rawdev/rte_rawdev.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/lib/librte_rawdev/rte_rawdev.c b/lib/librte_rawdev/rte_rawdev.c
index b18638435..9ee160455 100644
--- a/lib/librte_rawdev/rte_rawdev.c
+++ b/lib/librte_rawdev/rte_rawdev.c
@@ -95,11 +95,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;
 }
-- 
2.25.1

Reply via email to