From: Herbert Xu Date: Tue, 21 Apr 2015 02:46:47 +0000 (+0800) Subject: crypto: algif_rng - Remove obsolete const-removal cast X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=654ae152b3d1f3d5d473d845a403e4b5c1a39389;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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) * 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 = {