summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
diff options
context:
space:
mode:
authorKent Russell <kent.russell@amd.com>2017-08-16 06:00:07 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2017-08-16 06:00:07 +0300
commitab7c16486707f86264c73b043327c70866236722 (patch)
treedafd848eab599c334f131167871ba9d83381ff0b /drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
parent4eacc26b3b99c32deed150adff5e38ebce60527c (diff)
downloadlinux-ab7c16486707f86264c73b043327c70866236722.tar.xz
drm/amdkfd: Fix goto usage v2
Remove gotos that do not feature any common cleanup, and use gotos instead of repeating cleanup commands. According to kernel.org: "The goto statement comes in handy when a function exits from multiple locations and some common work such as cleanup has to be done. If there is no cleanup needed then just return directly." v2: Applied review suggestions in create_queue_nocpsch Signed-off-by: Kent Russell <kent.russell@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c')
0 files changed, 0 insertions, 0 deletions