Skip to contentSkip to conversation

perf: make cmd_to_page function compact

PATCH John Kacur 1 participant 1 message Jan 13, 2010 1 message not in the archive

lore
Share & tools
lore

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

author Acked-by
#1 lore raw
Quoted 20 lines · ----- "Wenji Huang

Remove branch for is_perf_command

---
 tools/perf/builtin-help.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
tools/perf/builtin-help.c +0 -2
index 9f810b1..65e2691 100644
@@ -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.