random: Don't wake crng_init_wait when crng_init == 1
authorAndy Lutomirski <luto@kernel.org>
Mon, 23 Dec 2019 08:20:44 +0000 (00:20 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 7 Jan 2020 21:07:00 +0000 (16:07 -0500)
commit4c8d062186d9923c09488716b2fb1b829b5b8006
tree078e488cb4c2ad59d6cf3b66e175b3c928cd6dfe
parent1b710b1b10eff9d46666064ea25f079f70bc67a8
random: Don't wake crng_init_wait when crng_init == 1

crng_init_wait is only used to wayt for crng_init to be set to 2, so
there's no point to waking it when crng_init is set to 1.  Remove the
unnecessary wake_up_interruptible() call.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/6fbc0bfcbfc1fa2c76fd574f5b6f552b11be7fde.1577088521.git.luto@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/random.c