hwrng: Make explicit that max >= 32 always
authorPrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Fri, 18 Nov 2016 17:30:10 +0000 (23:00 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 21 Nov 2016 14:50:45 +0000 (22:50 +0800)
commited424bb3680b6e6167a44c5c195ec8f9aea3ab3b
tree11b446c82310aad649ff7888d479dbbdc5cd2a63
parent8ff4c191d1123ea1ba610dbc25e93568d9e7756c
hwrng: Make explicit that max >= 32 always

As hw_random core calls ->read with max > 32 or more, make it explicit.
Also remove checks involving 'max' being less than 8.

Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/msm-rng.c
drivers/char/hw_random/pic32-rng.c
drivers/char/hw_random/pseries-rng.c
include/linux/hw_random.h