mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] perf: make cmd_to_page function compact
@ 2010-01-13  9:01 Wenji Huang
  2010-01-13 10:37 ` [tip:perf/core] perf: Make cmd_to_page() function more compact tip-bot for Wenji Huang
  0 siblings, 1 reply; 2+ messages in thread
From: Wenji Huang @ 2010-01-13  9:01 UTC (permalink / raw)
  To: linux-kernel; +Cc: fweisbec, jkacur, acme, mingo, Wenji Huang

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-13 10:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-13  9:01 [PATCH] perf: make cmd_to_page function compact Wenji Huang
2010-01-13 10:37 ` [tip:perf/core] perf: Make cmd_to_page() function more compact tip-bot for Wenji Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome