hwrng: core - Drop current rng in set_current_rng
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 23 Dec 2014 05:40:21 +0000 (16:40 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Dec 2014 21:33:35 +0000 (08:33 +1100)
commitff77c150f71b761dcf29b9d1947df3165d2dc83e
treec35400d6b0ae1527c41014918ec9fc77e9789261
parentac3a497f13e42a99ed6fe188ebf2dcc39eb7ac20
hwrng: core - Drop current rng in set_current_rng

Rather than having callers of set_current_rng call drop_current_rng,
we can do it directly in set_current_rng.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/core.c