projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3eda8f
)
perf tools: Remove die() call
author
Arnaldo Carvalho de Melo
<acme@redhat.com>
Tue, 4 Apr 2017 14:36:22 +0000
(11:36 -0300)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Tue, 4 Apr 2017 14:36:22 +0000
(11:36 -0300)
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>
tools/perf/perf.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/perf.c
b/tools/perf/perf.c
index 9217f2227f3d2eb053245d92eddec05b9db2fb83..9dc346f2b255ca08e4512545178c0e492138637e 100644
(file)
--- 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);
}