diff options
| author | Arnd Bergmann <[email protected]> | 2018-01-03 23:40:11 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-01-05 10:55:34 -0500 |
| commit | 74bd5d56bfcb857abb5ae7d9f47933be9d288cbd (patch) | |
| tree | 5877196fa2af230f18bc31404a92def20745f87a /lib/test-string_helpers.c | |
| parent | 72deacce011bde7475c90e6ee7d4c7d28c384873 (diff) | |
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: 5ed99fb421d4 ("net/mlx5e: Move ethernet representors data into separate struct")
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Saeed Mahameed <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions