diff options
author | Doug Ledford <dledford@redhat.com> | 2018-06-01 18:19:19 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-06-01 18:20:43 +0300 |
commit | 008fba465d7c010dc14c9d7fd57a7a743d50bf8e (patch) | |
tree | 6a36779d3cb3f621d3bd00d614d4f8d6cf96b902 /drivers/infiniband | |
parent | 7fc8ff267d8a94964626b847a0440b6feef9dd68 (diff) | |
download | linux-008fba465d7c010dc14c9d7fd57a7a743d50bf8e.tar.xz |
RDMA/hns_roce: Don't check return value of zap_vma_ptes()
There is no need to check return value of zap_vma_ptes()
because there is nothing to do with this knowledge.
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c index 08c795e11cdd..21b901cfa2d6 100644 --- a/drivers/infiniband/hw/hns/hns_roce_main.c +++ b/drivers/infiniband/hw/hns/hns_roce_main.c @@ -475,13 +475,11 @@ static void hns_roce_disassociate_ucontext(struct ib_ucontext *ibcontext) struct hns_roce_ucontext *context = to_hr_ucontext(ibcontext); struct hns_roce_vma_data *vma_data, *n; struct vm_area_struct *vma; - int ret; mutex_lock(&context->vma_list_mutex); list_for_each_entry_safe(vma_data, n, &context->vma_list, list) { vma = vma_data->vma; - ret = zap_vma_ptes(vma, vma->vm_start, PAGE_SIZE); - WARN_ONCE(ret, "%s: zap_vma_ptes failed", __func__); + zap_vma_ptes(vma, vma->vm_start, PAGE_SIZE); vma->vm_flags &= ~(VM_SHARED | VM_MAYSHARE); vma->vm_ops = NULL; |