mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
drm/amdkfd: Remove unnecessary condition in kfd_topology_add_device()
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>
This commit is contained in:
parent
484d7dcc70
commit
7d4f8db4a1
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user