提交 4e80312f 编写于 作者: Z Zhen Lei 提交者: Yang Yingliang

net/mlx5e: Eliminate a compilation warning

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: NZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 385d30c5
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册