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:
b138f42
)
perf trace: Removed duplicated NULL test
author
He Kuang
<hekuang@huawei.com>
Mon, 11 May 2015 12:28:36 +0000
(12:28 +0000)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Tue, 12 May 2015 12:59:49 +0000
(09:59 -0300)
No need to test trace.evlist against NULL twice.
Signed-off-by: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Wang Nan <wangnan0@huawei.com>
Link:
http://lkml.kernel.org/r/1431347316-30401-2-git-send-email-hekuang@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/builtin-trace.c
b/tools/perf/builtin-trace.c
index cbfdb9523868044ad305fb100933818ab3dfc90e..96a2ebafc75539da6d48faad0fbd0e7c41d0b9fd 100644
(file)
--- a/
tools/perf/builtin-trace.c
+++ b/
tools/perf/builtin-trace.c
@@
-2721,11
+2721,10
@@
int cmd_trace(int argc, const char **argv, const char *prefix __maybe_unused)
signal(SIGFPE, sighandler_dump_stack);
trace.evlist = perf_evlist__new();
- if (trace.evlist == NULL)
- return -ENOMEM;
if (trace.evlist == NULL) {
pr_err("Not enough memory to run!\n");
+ err = -ENOMEM;
goto out;
}