Skip to content

Commit

Permalink
crypto: algif_rng - Remove obsolete const-removal cast
Browse files Browse the repository at this point in the history
Now that crypto_rng_reset takes a const argument, we no longer
need to cast away the const qualifier.

Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
herbertx committed Apr 22, 2015
1 parent 94f1bb1 commit 654ae15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/algif_rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 654ae15

Please sign in to comment.