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

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
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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];