From: Wenji Huang Date: Wed, 13 Jan 2010 09:01:38 +0000 (+0800) Subject: perf: Make cmd_to_page() function more compact X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff314d3903c2843de65c2148f66f277f2440ed26;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git perf: Make cmd_to_page() function more compact Remove branch for is_perf_command. Signed-off-by: Wenji Huang 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 --- 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); }