net/mlx5e: Remove set but not used variable 'upriv'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 12 Dec 2018 08:33:53 +0000 (08:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Dec 2018 05:38:04 +0000 (21:38 -0800)
commitc784a28b025a22f8c791e14096fb7079236739c0
tree93992870c79cba1f090232f32bb21df3a507843d
parent02e1dbe402de8c41787da7b1ef9acd2457b0b84b
net/mlx5e: Remove set but not used variable 'upriv'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/mellanox/mlx5/core/en_rep.c: In function 'mlx5e_vport_rep_load':
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:1490:21: warning:
 variable 'upriv' set but not used [-Wunused-but-set-variable]

drivers/net/ethernet/mellanox/mlx5/core/en_rep.c: In function 'mlx5e_vport_rep_unload':
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:1557:21: warning:
 variable 'upriv' set but not used [-Wunused-but-set-variable]

It not used any more since commit ef381359e3a8 ("net/mlx5e: Replace egdev with
indirect block notifications"). Also remove unused variable 'uplink_rpriv'
after this change.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c