mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
IB/core: Remove redundant pointer mm
The pointer mm is assigned a value but it is never used. The pointer is redundant and can be removed. Link: https://lore.kernel.org/r/20211204234904.105026-1-colin.i.king@gmail.com Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
9692407d43
commit
1eb23d0432
1 changed files with 1 additions and 2 deletions
|
@ -227,7 +227,6 @@ struct ib_umem_odp *ib_umem_odp_get(struct ib_device *device,
|
||||||
const struct mmu_interval_notifier_ops *ops)
|
const struct mmu_interval_notifier_ops *ops)
|
||||||
{
|
{
|
||||||
struct ib_umem_odp *umem_odp;
|
struct ib_umem_odp *umem_odp;
|
||||||
struct mm_struct *mm;
|
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (WARN_ON_ONCE(!(access & IB_ACCESS_ON_DEMAND)))
|
if (WARN_ON_ONCE(!(access & IB_ACCESS_ON_DEMAND)))
|
||||||
|
@ -241,7 +240,7 @@ struct ib_umem_odp *ib_umem_odp_get(struct ib_device *device,
|
||||||
umem_odp->umem.length = size;
|
umem_odp->umem.length = size;
|
||||||
umem_odp->umem.address = addr;
|
umem_odp->umem.address = addr;
|
||||||
umem_odp->umem.writable = ib_access_writable(access);
|
umem_odp->umem.writable = ib_access_writable(access);
|
||||||
umem_odp->umem.owning_mm = mm = current->mm;
|
umem_odp->umem.owning_mm = current->mm;
|
||||||
umem_odp->notifier.ops = ops;
|
umem_odp->notifier.ops = ops;
|
||||||
|
|
||||||
umem_odp->page_shift = PAGE_SHIFT;
|
umem_odp->page_shift = PAGE_SHIFT;
|
||||||
|
|
Loading…
Reference in a new issue