Skip to content

Commit

Permalink
lib: Correct comment of prandom_seed
Browse files Browse the repository at this point in the history
Variable 'entropy' was wrongly documented as 'seed', changed comment to
reflect actual variable name.

../lib/random32.c:179: warning: Function parameter or member 'entropy' not described in 'prandom_seed'
../lib/random32.c:179: warning: Excess function parameter 'seed' description in 'prandom_seed'

Signed-off-by: Philippe Mazenauer <[email protected]>
Acked-by: Lee Jones <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Philippe Mazenauer authored and davem330 committed May 17, 2019
1 parent 34dcf6a commit 38a04b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/random32.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ static void prandom_seed_early(struct rnd_state *state, u32 seed,

/**
* prandom_seed - add entropy to pseudo random number generator
* @seed: seed value
* @entropy: entropy value
*
* Add some additional seeding to the prandom pool.
* Add some additional entropy to the prandom pool.
*/
void prandom_seed(u32 entropy)
{
Expand Down

0 comments on commit 38a04b8

Please sign in to comment.