diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-04 11:36:22 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-04 11:36:22 -0300 |
commit | 427748068a973627b406bf7312342b6fe4742d07 (patch) | |
tree | 3f263ba9cdbecb2307a4cffd29f11dee9fa61c63 /tools/perf/perf.c | |
parent | f3eda8f573c95051e5e3436957326868645d0e3f (diff) | |
download | op-kernel-dev-427748068a973627b406bf7312342b6fe4742d07.zip op-kernel-dev-427748068a973627b406bf7312342b6fe4742d07.tar.gz |
perf tools: Remove die() call
We can just use the exit() right after the branch calling die().
Link: http://lkml.kernel.org/n/tip-90athn06d7atf2jkpfvq1iic@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/perf.c')
-rw-r--r-- | tools/perf/perf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/perf.c b/tools/perf/perf.c index 9217f22..9dc346f 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c @@ -378,7 +378,8 @@ static void execv_dashed_external(const char **argv) if (status != -ERR_RUN_COMMAND_EXEC) { if (IS_RUN_COMMAND_ERR(status)) { do_die: - die("unable to run '%s'", argv[0]); + pr_err("FATAL: unable to run '%s'", argv[0]); + status = -128; } exit(-status); } |