amdkfd: delete some dead code
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 25 Nov 2014 16:43:29 +0000 (19:43 +0300)
committerOded Gabbay <oded.gabbay@amd.com>
Tue, 25 Nov 2014 16:43:29 +0000 (19:43 +0300)
This is dead code.  We don't need to unbind here, we can just return
directly.

Reviewed-by: Oded Gabbay <oded.gabbay@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process.c

index a17e2dd0f4894e5dd0ac6e438be7a1ebb51a76b8..b4f49ac13334249d2c7ac370249d8db91858a386 100644 (file)
@@ -348,11 +348,6 @@ struct kfd_process_device *kfd_bind_process_to_device(struct kfd_dev *dev,
        if (err < 0)
                return ERR_PTR(err);
 
-       if (err < 0) {
-               amd_iommu_unbind_pasid(dev->pdev, p->pasid);
-               return ERR_PTR(err);
-       }
-
        pdd->bound = true;
 
        return pdd;