[dpdk-dev] [PATCH] examples/ethtool: remove redundant assignment
Thomas Monjalon
thomas at monjalon.net
Wed Apr 21 20:27:06 CEST 2021
21/04/2021 04:39, Min Hu (Connor):
> From: Chengwen Feng <fengchengwen at huawei.com>
>
> The new_mtu was assigned twice, the first assignment could be removed.
>
> Fixes: bda68ab9d1e7 ("examples/ethtool: add user-space ethtool sample application")
> Cc: stable at dpdk.org
>
> Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
> Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
> ---
> - new_mtu = atoi(params->opt);
> new_mtu = strtoul(params->opt, &ptr_parse_end, 10);
Indeed, it looks useless.
Applied, thanks.
More information about the dev
mailing list