diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-07-02 08:59:28 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-07-03 14:14:21 -0600 |
commit | 7496a511a0be976406d0e7ab8cdec7df6e5aac04 (patch) | |
tree | 5902726c619fe4dc5e56700a58b4ae7568f228ad /drivers/infiniband/hw/mlx5/main.c | |
parent | IB/srp: Remove driver version and release data information (diff) | |
download | linux-dev-7496a511a0be976406d0e7ab8cdec7df6e5aac04.tar.xz linux-dev-7496a511a0be976406d0e7ab8cdec7df6e5aac04.zip |
IB/mlx5: Remove set-but-not-used variables
Avoid that the compiler complains about set-but-not-used variables when
building with W=1. This patch does not change any functionality.
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 322f036a1264..e4460b99581a 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -5784,9 +5784,7 @@ static void mlx5_ib_stage_roce_cleanup(struct mlx5_ib_dev *dev) struct mlx5_core_dev *mdev = dev->mdev; enum rdma_link_layer ll; int port_type_cap; - u8 port_num; - port_num = mlx5_core_native_port_num(dev->mdev) - 1; port_type_cap = MLX5_CAP_GEN(mdev, port_type); ll = mlx5_port_type_cap_to_rdma_ll(port_type_cap); |