git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10aa375
)
examples/ethtool: remove unused parsing
author
Chengwen Feng
<fengchengwen@huawei.com>
Wed, 21 Apr 2021 02:39:43 +0000
(10:39 +0800)
committer
Thomas Monjalon
<thomas@monjalon.net>
Wed, 21 Apr 2021 18:28:54 +0000
(20:28 +0200)
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 <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
examples/ethtool/ethtool-app/ethapp.c
patch
|
blob
|
history
diff --git
a/examples/ethtool/ethtool-app/ethapp.c
b/examples/ethtool/ethtool-app/ethapp.c
index e6c93e13a73656df3dc26c8ae0a3963784b94e9f..36a1c374f4906f1f0794b39a703f18fb73d264de 100644
(file)
--- 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 ||