summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-help.c
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2010-01-13 17:01:38 +0800
committerIngo Molnar <mingo@elte.hu>2010-01-13 10:53:51 +0100
commitff314d3903c2843de65c2148f66f277f2440ed26 (patch)
treebfe89a352563e1d67b82de9f933ca3e829eca5b0 /tools/perf/builtin-help.c
parent8381f65d097dad90416808314737dd7d3ae38ea9 (diff)
downloadlinux-ff314d3903c2843de65c2148f66f277f2440ed26.tar.gz
linux-ff314d3903c2843de65c2148f66f277f2440ed26.tar.bz2
linux-ff314d3903c2843de65c2148f66f277f2440ed26.zip
perf: Make cmd_to_page() function more compact
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>
Diffstat (limited to 'tools/perf/builtin-help.c')
-rw-r--r--tools/perf/builtin-help.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/perf/builtin-help.c b/tools/perf/builtin-help.c
index e427d6965e0c..215b584007b1 100644
--- 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);
}