diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2018-04-10 17:33:11 -0400 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2018-04-10 17:33:11 -0400 |
commit | 2a26fbfe80015faef830bc47c5223b4b31d41791 (patch) | |
tree | e9777e38105cc06595e1be378437969366129fb0 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ca750681bc4a897ffa7eed71a1e05762fb1f0a34 (diff) |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions