From: Thomas Monjalon Date: Sun, 24 Feb 2019 22:42:40 +0000 (+0100) Subject: net/mlx5: call generic strlcpy X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;ds=sidebyside;h=09c9c4d23dc764bf833e432c8f3d5fae612e18b7;p=dpdk.git net/mlx5: call generic strlcpy 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 Reviewed-by: Rami Rosen Acked-by: Shahaf Shuler --- diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index 740c5e2739..ae4b71695e 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -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);