diff options
author | Taeung Song <treeze.taeung@gmail.com> | 2017-06-17 06:46:42 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-06-20 04:05:55 +0300 |
commit | dfe1c6d7efa8ead6878b73216d4c891a28207528 (patch) | |
tree | cdec6d8a70a4ce696744be2abf8ce04caa2ebcea /include | |
parent | 4f1fd74283582f3f5c34d1c9ed55117d775b4a20 (diff) | |
download | linux-dfe1c6d7efa8ead6878b73216d4c891a28207528.tar.xz |
perf config: Refactor the code using 'ret' variable in cmd_config()
To simplify the code related to 'ret' variable in cmd_config(),
initialize 'ret' with -1 instead of 0 and use goto to perform resource
release at the end of the function, setting ret to zero just before the
out_err label, as usual in the kernel sources.
Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1497671202-20495-1-git-send-email-treeze.taeung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions