]> git.baikalelectronics.ru Git - kernel.git/commit
lib/random32.c: minor cleanups and kdoc fix
authorDaniel Borkmann <dborkman@redhat.com>
Thu, 3 Apr 2014 21:49:08 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:11 +0000 (16:21 -0700)
commit2b18ba7477aa877a840b9243eff2f3e56b588377
treed5947fe6955bff2468e1e950673ae69af2d681df
parent89d708923a430b1273ec1c4cc164e04d047473df
lib/random32.c: minor cleanups and kdoc fix

These are just some very minor and misc cleanups in the PRNG.  In
prandom_u32() we store the result in an unsigned long which is
unnecessary as it should be u32 instead that we get from
prandom_u32_state().  prandom_bytes_state()'s comment is in kdoc format,
so change it into such as it's done everywhere else.  Also, use the
normal comment style for the header comment.  Last but not least for
readability, add some newlines.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/random32.c