提交 7d4f8db4 编写于 作者: D Dan Carpenter 提交者: 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: NDan Carpenter <error27@gmail.com>
Signed-off-by: NFelix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: NFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册