* [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* [tip:perf/core] perf: Make cmd_to_page() function more compact
2010-01-13 9:01 [PATCH] perf: make cmd_to_page function compact Wenji Huang
@ 2010-01-13 10:37 ` tip-bot for Wenji Huang
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Wenji Huang @ 2010-01-13 10:37 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, wenji.huang, tglx, mingo
Commit-ID: ff314d3903c2843de65c2148f66f277f2440ed26
Gitweb: http://git.kernel.org/tip/ff314d3903c2843de65c2148f66f277f2440ed26
Author: Wenji Huang <wenji.huang@oracle.com>
AuthorDate: Wed, 13 Jan 2010 17:01:38 +0800
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Wed, 13 Jan 2010 10:53:51 +0100
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>
---
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 e427d69..215b584 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);
}
^ 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