Skip to content

Commit

Permalink
random: remove stale maybe_reseed_primary_crng
Browse files Browse the repository at this point in the history
The function maybe_reseed_primary_crng is not used anywhere and thus can
be removed.

Signed-off-by: Stephan Mueller <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
  • Loading branch information
smuellerDD authored and tytso committed Jan 19, 2017
1 parent a121103 commit 3d071d8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/char/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,13 +855,6 @@ static void crng_reseed(struct crng_state *crng, struct entropy_store *r)
spin_unlock_irqrestore(&primary_crng.lock, flags);
}

static inline void maybe_reseed_primary_crng(void)
{
if (crng_init > 2 &&
time_after(jiffies, primary_crng.init_time + CRNG_RESEED_INTERVAL))
crng_reseed(&primary_crng, &input_pool);
}

static inline void crng_wait_ready(void)
{
wait_event_interruptible(crng_init_wait, crng_ready());
Expand Down

0 comments on commit 3d071d8

Please sign in to comment.