Skip to content

Commit 7d4f8db

Browse files
error27alexdeucher
authored andcommitted
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 <[email protected]> Signed-off-by: Felix Kuehling <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 484d7dc commit 7d4f8db

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/gpu/drm/amd/amdkfd/kfd_topology.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2012,10 +2012,9 @@ int kfd_topology_add_device(struct kfd_dev *gpu)
20122012

20132013
kfd_debug_print_topology();
20142014

2015-
if (!res)
2016-
kfd_notify_gpu_change(gpu_id, 1);
2015+
kfd_notify_gpu_change(gpu_id, 1);
20172016

2018-
return res;
2017+
return 0;
20192018
}
20202019

20212020
/**

0 commit comments

Comments
 (0)