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 <oded.gabbay@amd.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
This commit is contained in:
parent
6f9d54fd6e
commit
9cf4a28131
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue