summaryrefslogtreecommitdiffstats
path: root/scripts/kallsyms.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-04 10:53:17 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-19 22:50:33 +0900
commit52a849ed8896d733de6005993f34407f7512311a (patch)
tree802b512cb118de96dd40bfa70372f6c9637799b5 /scripts/kallsyms.c
parentf43e9daace4efc146aa653179bdebb478be5de8a (diff)
downloadlinux-52a849ed8896d733de6005993f34407f7512311a.tar.bz2
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 'scripts/kallsyms.c')
-rw-r--r--scripts/kallsyms.c3
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];