Commit 8f64df3d authored by Matt Mackall's avatar Matt Mackall Committed by Linus Torvalds

[PATCH] random: kill memsets of static data

Remove redundant memsets of BSS data
Signed-off-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 763b54f0
...@@ -1499,8 +1499,6 @@ static void init_std_data(struct entropy_store *r) ...@@ -1499,8 +1499,6 @@ static void init_std_data(struct entropy_store *r)
static int __init rand_initialize(void) static int __init rand_initialize(void)
{ {
int i;
if (create_entropy_store(DEFAULT_POOL_SIZE, "primary", &random_state)) if (create_entropy_store(DEFAULT_POOL_SIZE, "primary", &random_state))
goto err; goto err;
if (batch_entropy_init(BATCH_ENTROPY_SIZE, random_state)) if (batch_entropy_init(BATCH_ENTROPY_SIZE, random_state))
...@@ -1517,10 +1515,6 @@ static int __init rand_initialize(void) ...@@ -1517,10 +1515,6 @@ static int __init rand_initialize(void)
#ifdef CONFIG_SYSCTL #ifdef CONFIG_SYSCTL
sysctl_init_random(random_state); sysctl_init_random(random_state);
#endif #endif
for (i = 0; i < NR_IRQS; i++)
irq_timer_state[i] = NULL;
memset(&input_timer_state, 0, sizeof(struct timer_rand_state));
memset(&extract_timer_state, 0, sizeof(struct timer_rand_state));
extract_timer_state.dont_count_entropy = 1; extract_timer_state.dont_count_entropy = 1;
return 0; return 0;
err: err:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment