Skip to content

Commit

Permalink
examples/ethtool: remove unused parsing
Browse files Browse the repository at this point in the history
[ upstream commit 5be3505 ]

The new_mtu was assigned twice, the first assignment could be removed.

Fixes: bda68ab ("examples/ethtool: add user-space ethtool sample application")

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
  • Loading branch information
fengchengwen authored and steevenlee committed May 8, 2021
1 parent aa94d64 commit 1eea3b7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/ethtool/ethtool-app/ethapp.c
Expand Up @@ -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 ||
Expand Down

0 comments on commit 1eea3b7

Please sign in to comment.