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>
This commit is contained in:
@@ -596,9 +596,6 @@ static void insert_real_symbols_in_table(void)
|
|||||||
{
|
{
|
||||||
unsigned int i, j, c;
|
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 (i = 0; i < table_cnt; i++) {
|
||||||
for (j = 0; j < table[i].len; j++) {
|
for (j = 0; j < table[i].len; j++) {
|
||||||
c = table[i].sym[j];
|
c = table[i].sym[j];
|
||||||
|
|||||||
Reference in New Issue
Block a user