Skip to content

Commit

Permalink
kallsyms: remove unneeded memset() calls
Browse files Browse the repository at this point in the history
Global variables in the .bss section are zeroed out before the program
starts to run.

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y committed Feb 19, 2019
1 parent f43e9da commit 52a849e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scripts/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 52a849e

Please sign in to comment.