diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-20 22:46:47 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-21 21:30:21 -0400 |
commit | 654ae152b3d1f3d5d473d845a403e4b5c1a39389 (patch) | |
tree | e5473d4aa847c4b7e1044860495743e34483c8a2 | |
parent | 94f1bb15bed84ad6c893916b7e7b9db6f1d7eec6 (diff) |
crypto: algif_rng - Remove obsolete const-removal cast
Now that crypto_rng_reset takes a const argument, we no longer
need to cast away the const qualifier.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | crypto/algif_rng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/algif_rng.c b/crypto/algif_rng.c index 8109aaad2726..150c2b6480ed 100644 --- a/crypto/algif_rng.c +++ b/crypto/algif_rng.c | |||
@@ -164,7 +164,7 @@ static int rng_setkey(void *private, const u8 *seed, unsigned int seedlen) | |||
164 | * Check whether seedlen is of sufficient size is done in RNG | 164 | * Check whether seedlen is of sufficient size is done in RNG |
165 | * implementations. | 165 | * implementations. |
166 | */ | 166 | */ |
167 | return crypto_rng_reset(private, (u8 *)seed, seedlen); | 167 | return crypto_rng_reset(private, seed, seedlen); |
168 | } | 168 | } |
169 | 169 | ||
170 | static const struct af_alg_type algif_type_rng = { | 170 | static const struct af_alg_type algif_type_rng = { |