scripts/Kbuild.include: Fix portability problem of "echo -e"
[linux-2.6.git] / scripts / kallsyms.c
index 60dd3eb..487ac6f 100644 (file)
@@ -500,6 +500,8 @@ static void optimize_result(void)
 
                        /* find the token with the breates profit value */
                        best = find_best_token();
+                       if (token_profit[best] == 0)
+                               break;
 
                        /* place it in the "best" table */
                        best_table_len[i] = 2;