projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f43e9da
)
kallsyms: remove unneeded memset() calls
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Mon, 4 Feb 2019 01:53:17 +0000
(10:53 +0900)
committer
Masahiro Yamada
<yamada.masahiro@socionext.com>
Tue, 19 Feb 2019 13:50:33 +0000
(22:50 +0900)
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
patch
|
blob
|
history
diff --git
a/scripts/kallsyms.c
b/scripts/kallsyms.c
index
fc00bb0
..
f1b5749
100644
(file)
--- 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];