aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2014-11-25 19:43:29 +0300
committerOded Gabbay <[email protected]>2014-11-25 19:43:29 +0300
commit9cf4a281314c9345c13c7bbb5786d7b8a72553f0 (patch)
treee676736e65fefbf85283c4e96c133e8ca4f0f276
parent6f9d54fd6e0125b17fb286e1e54e934dd11f60d3 (diff)
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 <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_process.c5
1 files changed, 0 insertions, 5 deletions
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;