projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94f1bb1
)
crypto: algif_rng - Remove obsolete const-removal cast
author
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 21 Apr 2015 02:46:47 +0000
(10:46 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 22 Apr 2015 01:30:21 +0000
(09:30 +0800)
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>
crypto/algif_rng.c
patch
|
blob
|
history
diff --git
a/crypto/algif_rng.c
b/crypto/algif_rng.c
index 8109aaad2726170ed1e5b9238dbd278220d68079..150c2b6480ed2eefd53deb4bc56ba6b45c355aa3 100644
(file)
--- 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 = {