]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: hide an unused variable
authorArnd Bergmann <arnd@arndb.de>
Wed, 3 Jan 2018 22:40:11 +0000 (23:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jan 2018 15:55:34 +0000 (10:55 -0500)
commit4f0f896cc6567583b6c1aff9333190b22c5e4604
tree5877196fa2af230f18bc31404a92def20745f87a
parent7acf8acea7ab631879f18280ba2e0038ac0350f3
net/mlx5e: hide an unused variable

The uplink_rpriv variable was added at the start of the function but
only used inside of an #ifdef:

drivers/net/ethernet/mellanox/mlx5/core/en_tc.c: In function 'mlx5e_route_lookup_ipv6':
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:1549:25: error: unused variable 'uplink_rpriv' [-Werror=unused-variable]

This moves the declaration into that #ifdef as well.

Fixes: f169e0c6dabb ("net/mlx5e: Move ethernet representors data into separate struct")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c