diff options
author | Kent Russell <kent.russell@amd.com> | 2017-08-15 23:00:07 -0400 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2017-08-15 23:00:07 -0400 |
commit | ab7c16486707f86264c73b043327c70866236722 (patch) | |
tree | dafd848eab599c334f131167871ba9d83381ff0b /drivers/gpu/host1x/intr.h | |
parent | 4eacc26b3b99c32deed150adff5e38ebce60527c (diff) |
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/host1x/intr.h')
0 files changed, 0 insertions, 0 deletions