kallsyms: remove unneeded memset() calls
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 4 Feb 2019 01:53:17 +0000 (10:53 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 19 Feb 2019 13:50:33 +0000 (22:50 +0900)
Global variables in the .bss section are zeroed out before the program
starts to run.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kallsyms.c

index fc00bb01faf060021cdc8581b29ca48a70287ee4..f1b57492adefa574719df09d5e8acba2579ac2fd 100644 (file)
@@ -596,9 +596,6 @@ static void insert_real_symbols_in_table(void)
 {
        unsigned int i, j, c;
 
-       memset(best_table, 0, sizeof(best_table));
-       memset(best_table_len, 0, sizeof(best_table_len));
-
        for (i = 0; i < table_cnt; i++) {
                for (j = 0; j < table[i].len; j++) {
                        c = table[i].sym[j];