[PATCH] perf: fix incorrect return value for else case

From: Wenji Huang
Date: Mon Dec 21 2009 - 04:26:28 EST


Return original cmd instead of adding prefix.

Signed-off-by: Wenji Huang <wenji.huang@xxxxxxxxxx>
---
tools/perf/builtin-help.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/builtin-help.c b/tools/perf/builtin-help.c
index 9f810b1..ca77df5 100644
--- a/tools/perf/builtin-help.c
+++ b/tools/perf/builtin-help.c
@@ -317,7 +317,7 @@ static const char *cmd_to_page(const char *perf_cmd)
else if (is_perf_command(perf_cmd))
return prepend("perf-", perf_cmd);
else
- return prepend("perf-", perf_cmd);
+ return perf_cmd;
}

static void setup_man_path(void)
--
1.5.6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/