summaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random/pic32-rng.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/hw_random/pic32-rng.c')
-rw-r--r--drivers/char/hw_random/pic32-rng.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/char/hw_random/pic32-rng.c b/drivers/char/hw_random/pic32-rng.c
index 11dc9b7c09ce..9b5e68a71d01 100644
--- a/drivers/char/hw_random/pic32-rng.c
+++ b/drivers/char/hw_random/pic32-rng.c
@@ -62,9 +62,6 @@ static int pic32_rng_read(struct hwrng *rng, void *buf, size_t max,
u32 t;
unsigned int timeout = RNG_TIMEOUT;
- if (max < 8)
- return 0;
-
do {
t = readl(priv->base + RNGRCNT) & RCNT_MASK;
if (t == 64) {