diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-21 10:46:47 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-22 09:30:21 +0800 |
commit | de17ed444a2c6081f62bfb436d3dbe6a7ddd7db1 (patch) | |
tree | 52cc5dc876bf70ca29499c090664ffa030363900 /crypto | |
parent | f7da2d8decf2c87176db5a50558e0bc92369e3e1 (diff) | |
download | linux-crypto-de17ed444a2c6081f62bfb436d3dbe6a7ddd7db1.tar.gz linux-crypto-de17ed444a2c6081f62bfb436d3dbe6a7ddd7db1.zip |
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>
Diffstat (limited to 'crypto')
-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 8109aaad..150c2b64 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) * Check whether seedlen is of sufficient size is done in RNG * implementations. */ - return crypto_rng_reset(private, (u8 *)seed, seedlen); + return crypto_rng_reset(private, seed, seedlen); } static const struct af_alg_type algif_type_rng = { |