diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-07-24 08:18:46 +0300 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2015-08-24 17:36:08 +0300 |
commit | d179e22762fd38414c4108acedd5feca4cf7e0d8 (patch) | |
tree | 75d083f8f2d3cadaef660f8faadd42d49182a310 /scripts/basic | |
parent | d721109611fb94aff53c2397859046e5f92f55ae (diff) | |
download | linux-d179e22762fd38414c4108acedd5feca4cf7e0d8.tar.xz |
kbuild: fixdep: drop meaningless hash table initialization
The clear_config() is called just once at the beginning of this
program, but the global variable hashtab[] is already zero-filled
at the start-up.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts/basic')
-rw-r--r-- | scripts/basic/fixdep.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 46cc1b3e5de2..c68fd61fdc42 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c @@ -192,23 +192,6 @@ static void define_config(const char *name, int len, unsigned int hash) } /* - * Clear the set of configuration strings. - */ -static void clear_config(void) -{ - struct item *aux, *next; - unsigned int i; - - for (i = 0; i < HASHSZ; i++) { - for (aux = hashtab[i]; aux; aux = next) { - next = aux->next; - free(aux); - } - hashtab[i] = NULL; - } -} - -/* * Record the use of a CONFIG_* word. */ static void use_config(const char *m, int slen) @@ -325,8 +308,6 @@ static void parse_dep_file(void *map, size_t len) int saw_any_target = 0; int is_first_dep = 0; - clear_config(); - while (m < end) { /* Skip any "white space" */ while (m < end && (*m == ' ' || *m == '\\' || *m == '\n')) |