Messages in this thread Patch in this message | | | From | Wenji Huang <> | Subject | [PATCH] perf: make cmd_to_page function compact | Date | Wed, 13 Jan 2010 17:01:38 +0800 |
| |
Remove branch for is_perf_command
Signed-off-by: Wenji Huang <wenji.huang@oracle.com> --- tools/perf/builtin-help.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/tools/perf/builtin-help.c b/tools/perf/builtin-help.c index 9f810b1..65e2691 100644 --- a/tools/perf/builtin-help.c +++ b/tools/perf/builtin-help.c @@ -314,8 +314,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); } -- 1.5.6
| |