Commit 7d4f8db4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Alex Deucher

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: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 484d7dcc
......@@ -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;
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment