]> git.baikalelectronics.ru Git - kernel.git/commit
hwrng: timeriomem - Remove 'max < 4' condition check
authorPrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Tue, 22 Aug 2017 16:22:24 +0000 (21:52 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Sep 2017 09:43:14 +0000 (17:43 +0800)
commit0a2e2fe38ec36767b7ebaaef79146401f1a6cad4
treef5127b1ba0047c57ad6041085ad830b1f8df4b47
parente40b24f2f4b96927fec01ca1de21cf379ad74980
hwrng: timeriomem - Remove 'max < 4' condition check

In read routiene max is always >= 4. The check whether 'max < 4' is not
necessary. Remove it.

Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Acked-By: Rick Altherr <raltherr@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/timeriomem-rng.c