From: Dan Carpenter Date: Tue, 25 Nov 2014 16:43:29 +0000 (+0300) Subject: amdkfd: delete some dead code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9cf4a281314c9345c13c7bbb5786d7b8a72553f0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git amdkfd: delete some dead code This is dead code. We don't need to unbind here, we can just return directly. Reviewed-by: Oded Gabbay Signed-off-by: Dan Carpenter Signed-off-by: Oded Gabbay --- diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c index a17e2dd0f489..b4f49ac13334 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c @@ -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;