]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - scripts/kallsyms.c
Merge branch 'pnfs-submit' of git://git.open-osd.org/linux-open-osd
[karo-tx-linux.git] / 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;