diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2020-10-26 15:19:34 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-11-02 14:52:26 -0400 |
commit | 95741ee3f0f1f437720626131d866ac8dc66ab14 (patch) | |
tree | d07409b0b8f0efe77bf7b3ac4cdcc8ca5e00b3d3 /drivers/infiniband/hw/mlx5/srq.c | |
parent | f0093fb1a7cbff4bbfa47c1499a9e76f75359dbe (diff) | |
download | linux-stable-95741ee3f0f1f437720626131d866ac8dc66ab14.tar.gz linux-stable-95741ee3f0f1f437720626131d866ac8dc66ab14.tar.bz2 linux-stable-95741ee3f0f1f437720626131d866ac8dc66ab14.zip |
RDMA/mlx5: Remove order from mlx5_ib_cont_pages()
Only alloc_mr_from_cache() needs order and can trivially compute it, so
lift it to the one call site and remove the NULL arguments.
Link: https://lore.kernel.org/r/20201026131936.1335664-6-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/srq.c')
-rw-r--r-- | drivers/infiniband/hw/mlx5/srq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/srq.c b/drivers/infiniband/hw/mlx5/srq.c index 12d485872e77..95fc16aa0d31 100644 --- a/drivers/infiniband/hw/mlx5/srq.c +++ b/drivers/infiniband/hw/mlx5/srq.c @@ -88,7 +88,7 @@ static int create_srq_user(struct ib_pd *pd, struct mlx5_ib_srq *srq, } mlx5_ib_cont_pages(srq->umem, ucmd.buf_addr, 0, &npages, - &page_shift, &ncont, NULL); + &page_shift, &ncont); err = mlx5_ib_get_buf_offset(ucmd.buf_addr, page_shift, &offset); if (err) { |