Skip to content

Commit

Permalink
drm/amdkfd: Remove unnecessary condition in kfd_topology_add_device()
Browse files Browse the repository at this point in the history
We re-arranged this code recently so "ret" is always zero at this point.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Dan Carpenter authored and Alex Deucher committed Nov 29, 2022
1 parent 484d7dc commit 7d4f8db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/gpu/drm/amd/amdkfd/kfd_topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -2012,10 +2012,9 @@ int kfd_topology_add_device(struct kfd_dev *gpu)

kfd_debug_print_topology();

if (!res)
kfd_notify_gpu_change(gpu_id, 1);
kfd_notify_gpu_change(gpu_id, 1);

return res;
return 0;
}

/**
Expand Down

0 comments on commit 7d4f8db

Please sign in to comment.