diff mbox series

[2/3] kallsyms: remove unneeded memset() calls

Message ID 1549245198-6182-2-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 52a849ed8896d733de6005993f34407f7512311a
Headers show
Series [1/3] kallsyms: add static qualifiers where missing | expand

Commit Message

Masahiro Yamada Feb. 4, 2019, 1:53 a.m. UTC
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 | 3 ---
 1 file changed, 3 deletions(-)

-- 
2.7.4
diff mbox series

Patch

diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index fc00bb0..f1b5749 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];