drm/amdkfd: Fix goto usage
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 10 Apr 2018 21:33:11 +0000 (17:33 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 10 Apr 2018 21:33:11 +0000 (17:33 -0400)
commit2a26fbfe80015faef830bc47c5223b4b31d41791
treee9777e38105cc06595e1be378437969366129fb0
parentca750681bc4a897ffa7eed71a1e05762fb1f0a34
drm/amdkfd: Fix goto usage

Missed a spot in previous cleanup commit:
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."

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>
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c