RDMA/hns_roce: Don't check return value of zap_vma_ptes()
authorDoug Ledford <dledford@redhat.com>
Fri, 1 Jun 2018 15:19:19 +0000 (11:19 -0400)
committerDoug Ledford <dledford@redhat.com>
Fri, 1 Jun 2018 15:20:43 +0000 (11:20 -0400)
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>
drivers/infiniband/hw/hns/hns_roce_main.c

index 08c795e11cdd372a97d785852c2708032e373a28..21b901cfa2d65fbf5e5ece47114140d38d0693e7 100644 (file)
@@ -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;