]> Pileus Git - ~andy/linux/blobdiff - scripts/kallsyms.c
Merge tag 'at91-fixes' of git://github.com/at91linux/linux-at91 into fixes
[~andy/linux] / scripts / kallsyms.c
index 60dd3eb9366e4c5404383285df6cee3886bfa699..487ac6f37ca23ce2d1e832fa177d74d4544386bf 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;