Commit 52a849ed authored by Masahiro Yamada's avatar Masahiro Yamada

kallsyms: remove unneeded memset() calls

Global variables in the .bss section are zeroed out before the program
starts to run.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent f43e9daa
...@@ -596,9 +596,6 @@ static void insert_real_symbols_in_table(void) ...@@ -596,9 +596,6 @@ static void insert_real_symbols_in_table(void)
{ {
unsigned int i, j, c; 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 (i = 0; i < table_cnt; i++) {
for (j = 0; j < table[i].len; j++) { for (j = 0; j < table[i].len; j++) {
c = table[i].sym[j]; c = table[i].sym[j];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment