random: remove stale maybe_reseed_primary_crng
authorStephan Mueller <stephan.mueller@atsec.com>
Thu, 15 Dec 2016 11:42:33 +0000 (12:42 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 19 Jan 2017 02:53:48 +0000 (21:53 -0500)
The function maybe_reseed_primary_crng is not used anywhere and thus can
be removed.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/random.c

index 1ef26403bcc83f6a0c26f20d67b74e7fe6331635..8e5ab20848c0678af5c06d73abe44e06c847cce6 100644 (file)
@@ -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());