summaryrefslogtreecommitdiffstats
path: root/lib/random32.c
diff options
context:
space:
mode:
authorPhilippe Mazenauer <philippe.mazenauer@outlook.de>2019-05-17 12:44:44 +0200
committerDavid S. Miller <davem@davemloft.net>2019-05-17 20:32:47 +0200
commit38a04b83ab3033905114d608737504e66350088b (patch)
treeebe8bf98a53848f9a4ff416268f1d6cc739f1e66 /lib/random32.c
parentnet: caif: fix the value of size argument of snprintf (diff)
downloadlinux-38a04b83ab3033905114d608737504e66350088b.tar.xz
linux-38a04b83ab3033905114d608737504e66350088b.zip
lib: Correct comment of prandom_seed
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 <philippe.mazenauer@outlook.de> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/random32.c')
-rw-r--r--lib/random32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/random32.c b/lib/random32.c
index 4aaa76404d56..763b920a6206 100644
--- a/lib/random32.c
+++ b/lib/random32.c
@@ -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)
{