aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/char/random.c
diff options
context:
space:
mode:
authorStephan Mueller <stephan.mueller@atsec.com>2016-12-15 12:42:33 +0100
committerTheodore Ts'o <tytso@mit.edu>2017-01-18 21:53:48 -0500
commit3d071d8da1f586c24863a57349586a1611b9aa67 (patch)
treea05dc7d837575c274ccdc22bfe19b5030fc931a8 /drivers/char/random.c
parentLinux 4.10-rc3 (diff)
downloadwireguard-linux-3d071d8da1f586c24863a57349586a1611b9aa67.tar.xz
wireguard-linux-3d071d8da1f586c24863a57349586a1611b9aa67.zip
random: remove stale maybe_reseed_primary_crng
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>
Diffstat (limited to 'drivers/char/random.c')
-rw-r--r--drivers/char/random.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 1ef26403bcc8..8e5ab20848c0 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -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());