net/mlx5: call generic strlcpy
authorThomas Monjalon <thomas@monjalon.net>
Sun, 24 Feb 2019 22:42:40 +0000 (23:42 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Mar 2019 16:52:22 +0000 (17:52 +0100)
The call to strlcpy uses either libc, libbsd or internal rte_strlcpy.
No need to call the DPDK flavor explicitly.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Rami Rosen <ramirose@gmail.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5.c

index 740c5e2..ae4b716 100644 (file)
@@ -785,7 +785,7 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev,
        }
        /* Build device name. */
        if (!switch_info->representor)
-               rte_strlcpy(name, dpdk_dev->name, sizeof(name));
+               strlcpy(name, dpdk_dev->name, sizeof(name));
        else
                snprintf(name, sizeof(name), "%s_representor_%u",
                         dpdk_dev->name, switch_info->port_name);