From 5be3505717269d6634a844bff3fc9339402b2690 Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Wed, 21 Apr 2021 10:39:43 +0800 Subject: [PATCH] examples/ethtool: remove unused parsing The new_mtu was assigned twice, the first assignment could be removed. Fixes: bda68ab9d1e7 ("examples/ethtool: add user-space ethtool sample application") Cc: stable@dpdk.org Signed-off-by: Chengwen Feng Signed-off-by: Min Hu (Connor) --- examples/ethtool/ethtool-app/ethapp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/ethtool/ethtool-app/ethapp.c b/examples/ethtool/ethtool-app/ethapp.c index e6c93e13a7..36a1c374f4 100644 --- a/examples/ethtool/ethtool-app/ethapp.c +++ b/examples/ethtool/ethtool-app/ethapp.c @@ -528,7 +528,6 @@ pcmd_mtu_callback(void *ptr_params, printf("Error: Invalid port number %i\n", params->port); return; } - new_mtu = atoi(params->opt); new_mtu = strtoul(params->opt, &ptr_parse_end, 10); if (*ptr_parse_end != '\0' || new_mtu < RTE_ETHER_MIN_MTU || -- 2.20.1