Skip to content

Commit

Permalink
perf: Make cmd_to_page() function more compact
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wenji Huang authored and Ingo Molnar committed Jan 13, 2010
1 parent 8381f65 commit ff314d3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tools/perf/builtin-help.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ff314d3

Please sign in to comment.