IB/mlx5: Avoid unnecessary typecast
authorParav Pandit <parav@mellanox.com>
Tue, 23 Jul 2019 06:57:31 +0000 (09:57 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 25 Jul 2019 15:07:14 +0000 (12:07 -0300)
commita5c9c299d1e1f3c6fb421d73367cc2f793af1a2d
treeca4069372ac8008aeeb2b92472d98e23f726429f
parent56594ae1d250f839945cda89d0138eece46dd607
IB/mlx5: Avoid unnecessary typecast

IB device pointer is already available while deallocating IB device,
Hence do not typecast it.

Link: https://lore.kernel.org/r/20190723065733.4899-9-leon@kernel.org
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c