diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-05-31 16:09:49 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-31 16:09:49 -0400 |
commit | 27b9613b7be39412775d0ab80f57229aa73bb07d (patch) | |
tree | 9549e13f8309e64675b64fd3cd1386b0603556de | |
parent | c1c2365acf8c044f749c0fe1ea236497e8d1718e (diff) |
perf_counter tools: Fix unknown command help text
Arjan reported this error when entering an unknown command to perf:
$ perf start
fatal: Uh oh. Your system reports no Git commands at all.
The Git code expects there to be perf-* commands - but since Perf
is a 'pure' utility with no dash commands anymore, this old assumption
of Git does not hold anymore. Remove that error check.
Reported-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | Documentation/perf_counter/util/help.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Documentation/perf_counter/util/help.c b/Documentation/perf_counter/util/help.c index edde541d238d..397487fb2bee 100644 --- a/Documentation/perf_counter/util/help.c +++ b/Documentation/perf_counter/util/help.c | |||
@@ -323,9 +323,6 @@ const char *help_unknown_cmd(const char *cmd) | |||
323 | qsort(main_cmds.names, main_cmds.cnt, | 323 | qsort(main_cmds.names, main_cmds.cnt, |
324 | sizeof(*main_cmds.names), levenshtein_compare); | 324 | sizeof(*main_cmds.names), levenshtein_compare); |
325 | 325 | ||
326 | if (!main_cmds.cnt) | ||
327 | die ("Uh oh. Your system reports no Git commands at all."); | ||
328 | |||
329 | best_similarity = main_cmds.names[0]->len; | 326 | best_similarity = main_cmds.names[0]->len; |
330 | n = 1; | 327 | n = 1; |
331 | while (n < main_cmds.cnt && best_similarity == main_cmds.names[n]->len) | 328 | while (n < main_cmds.cnt && best_similarity == main_cmds.names[n]->len) |