RDMA/mlx5: Reduce amount of duplication in QP destroy
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 27 Apr 2020 15:46:29 +0000 (18:46 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 30 Apr 2020 21:45:45 +0000 (18:45 -0300)
commit747c519cdbe4a3f6a616d50c19bcb97413abe384
treeae320fbea11e0c5c6b0dc31b530d5543dd35382e
parent98fc1126c4161450f215254409e5539314b54a04
RDMA/mlx5: Reduce amount of duplication in QP destroy

Delete both PD argument and checks if udata was provided, in favour
of unified destroy QP functions.

Link: https://lore.kernel.org/r/20200427154636.381474-30-leon@kernel.org
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c