From: Thomas Monjalon Subject: [PATCH] net/mlx5: call generic strlcpy Date: Sun, 24 Feb 2019 23:42:40 +0100 Message-ID: <20190224224240.26361-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org, ophirmu@mellanox.com To: Shahaf Shuler , Yongseok Koh Return-path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id EE6EE2BBB for ; Sun, 24 Feb 2019 23:42:47 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The call to strlcpy uses either libc, libbsd or internal rte_strlcpy. No need to call the DPDK flavor explictly. Signed-off-by: Thomas Monjalon --- drivers/net/mlx5/mlx5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index df71707ccb..bda909eaa5 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); -- 2.20.1