diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2019-06-12 14:27:41 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2019-06-20 20:37:02 +0200 |
commit | a49b1dc7ae447d7085360cd587fc1c8b9ec6c871 (patch) | |
tree | ff57360fc555422af427cd1e4d1061e30fb0db75 /drivers/infiniband/hw/mlx4/qp.c | |
parent | RDMA/hns: Fix bug when wqe num is larger than 16K (diff) | |
download | linux-a49b1dc7ae447d7085360cd587fc1c8b9ec6c871.tar.xz linux-a49b1dc7ae447d7085360cd587fc1c8b9ec6c871.zip |
RDMA: Convert destroy_wq to be void
All callers of destroy WQ are always success and there is no need
to check their return value, so convert destroy_wq to be void.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/qp.c')
-rw-r--r-- | drivers/infiniband/hw/mlx4/qp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c index 5221c0794d1d..520364defa28 100644 --- a/drivers/infiniband/hw/mlx4/qp.c +++ b/drivers/infiniband/hw/mlx4/qp.c @@ -4248,7 +4248,7 @@ int mlx4_ib_modify_wq(struct ib_wq *ibwq, struct ib_wq_attr *wq_attr, return err; } -int mlx4_ib_destroy_wq(struct ib_wq *ibwq, struct ib_udata *udata) +void mlx4_ib_destroy_wq(struct ib_wq *ibwq, struct ib_udata *udata) { struct mlx4_ib_dev *dev = to_mdev(ibwq->device); struct mlx4_ib_qp *qp = to_mqp((struct ib_qp *)ibwq); @@ -4259,8 +4259,6 @@ int mlx4_ib_destroy_wq(struct ib_wq *ibwq, struct ib_udata *udata) destroy_qp_common(dev, qp, MLX4_IB_RWQ_SRC, udata); kfree(qp); - - return 0; } struct ib_rwq_ind_table |