diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-02-04 02:53:17 +0100 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-02-19 14:50:33 +0100 |
commit | 52a849ed8896d733de6005993f34407f7512311a (patch) | |
tree | 802b512cb118de96dd40bfa70372f6c9637799b5 /scripts/kallsyms.c | |
parent | kallsyms: add static qualifiers where missing (diff) | |
download | linux-52a849ed8896d733de6005993f34407f7512311a.tar.xz linux-52a849ed8896d733de6005993f34407f7512311a.zip |
kallsyms: remove unneeded memset() calls
Global variables in the .bss section are zeroed out before the program
starts to run.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to '')
-rw-r--r-- | scripts/kallsyms.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index fc00bb01faf0..f1b57492adef 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -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]; |