mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
amd/amdkfd: remove unused parameter
The adev can be found from bo by amdgpu_ttm_adev(bo->tbo.bdev), and adev is also not used in the function amdgpu_amdkfd_map_gtt_bo_to_gart(). Signed-off-by: Eric Huang <jinhuieric.huang@amd.com> Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -371,7 +371,7 @@ static int kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p,
|
||||
goto err_wptr_map_gart;
|
||||
}
|
||||
|
||||
err = amdgpu_amdkfd_map_gtt_bo_to_gart(dev->adev, wptr_bo);
|
||||
err = amdgpu_amdkfd_map_gtt_bo_to_gart(wptr_bo);
|
||||
if (err) {
|
||||
pr_err("Failed to map wptr bo to GART\n");
|
||||
goto err_wptr_map_gart;
|
||||
|
||||
Reference in New Issue
Block a user