perf: make cmd_to_page function compact
A message that is not in the archive (sent off-list or not yet received): 969870729.210151263389292546.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com
John Kacur
Acked-byQuoted 20 lines · ----- "Wenji Huang
Remove branch for
is_perf_commandSigned-off-by Wenji Huang <[email protected]>--- tools/perf/builtin-help.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)tools/perf/builtin-help.c +0
-2@@ -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);
Quoted 3 lines
}
Signature · 1 line
1.5.6
Thanks, Wenji, I tested your change, and it works find.
Acked-by John Kacur <[email protected]>