From: Ingo Molnar Date: Sun, 31 May 2009 20:09:49 +0000 (+0200) Subject: perf_counter tools: Fix unknown command help text X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=27b9613b7be39412775d0ab80f57229aa73bb07d;p=linux-beck.git 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 Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Paul Mackerras Cc: Corey Ashford Cc: Marcelo Tosatti Cc: Arnaldo Carvalho de Melo Cc: Thomas Gleixner Cc: John Kacur LKML-Reference: Signed-off-by: Ingo Molnar --- 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) qsort(main_cmds.names, main_cmds.cnt, sizeof(*main_cmds.names), levenshtein_compare); - if (!main_cmds.cnt) - die ("Uh oh. Your system reports no Git commands at all."); - best_similarity = main_cmds.names[0]->len; n = 1; while (n < main_cmds.cnt && best_similarity == main_cmds.names[n]->len)