projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8381f65
)
perf: Make cmd_to_page() function more compact
author
Wenji Huang
<wenji.huang@oracle.com>
Wed, 13 Jan 2010 09:01:38 +0000
(17:01 +0800)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 13 Jan 2010 09:53:51 +0000
(10:53 +0100)
Remove branch for is_perf_command.
Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
Cc: fweisbec@gmail.com
Cc: jkacur@redhat.com
Cc: acme@redhat.com
LKML-Reference: <
1263373298
-13282-1-git-send-email-wenji.huang@oracle.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-help.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/builtin-help.c
b/tools/perf/builtin-help.c
index e427d6965e0c7d4667a593ac594b506e34679eb4..215b584007b19f8ccccc7951c5ee9eebabda3bf7 100644
(file)
--- a/
tools/perf/builtin-help.c
+++ b/
tools/perf/builtin-help.c
@@
-313,8
+313,6
@@
static const char *cmd_to_page(const char *perf_cmd)
return "perf";
else if (!prefixcmp(perf_cmd, "perf"))
return perf_cmd;
- else if (is_perf_command(perf_cmd))
- return prepend("perf-", perf_cmd);
else
return prepend("perf-", perf_cmd);
}