
From: Zhen Lei <thunder.leizhen@huawei.com> hulk inclusion category: bugfix bugzilla: 51531 CVE: NA ------------------------------------------------------------------------- The local variable 'ret' is unused now. drivers/net/ethernet/mellanox/mlx5/core/en_tc.c: In function ‘mlx5e_route_lookup_ipv6’: drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:2220:6: warning: unused variable ‘ret’ [-Wunused-variable] int ret; ^~~ Fixes: 3d5b4d0ecbe7 ("net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup") Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c index 72708263686cf..91a773de28fb0 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c @@ -2217,7 +2217,6 @@ static int mlx5e_route_lookup_ipv6(struct mlx5e_priv *priv, #if IS_ENABLED(CONFIG_INET) && IS_ENABLED(CONFIG_IPV6) struct mlx5e_rep_priv *uplink_rpriv; struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; - int ret; dst = ipv6_stub->ipv6_dst_lookup_flow(dev_net(mirred_dev), NULL, fl6, NULL); -- 2.25.1