1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-24 01:09:38 -05:00

crypto: jitter - fix comments

One should not say "ec can be NULL" and then dereference it.
One cannot talk about the return value if the function returns void.

Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Alexander E. Patrakov 2019-09-18 12:28:49 +05:00 committed by Herbert Xu
parent a68b931932
commit e1f653cbe7

View file

@ -172,7 +172,7 @@ static __u64 jent_loop_shuffle(struct rand_data *ec,
* implies that careful retesting must be done. * implies that careful retesting must be done.
* *
* Input: * Input:
* @ec entropy collector struct -- may be NULL * @ec entropy collector struct
* @time time stamp to be injected * @time time stamp to be injected
* @loop_cnt if a value not equal to 0 is set, use the given value as number of * @loop_cnt if a value not equal to 0 is set, use the given value as number of
* loops to perform the folding * loops to perform the folding
@ -400,8 +400,8 @@ static void jent_gen_entropy(struct rand_data *ec)
* primes the test if needed. * primes the test if needed.
* *
* Return: * Return:
* 0 if FIPS test passed * returns normally if FIPS test passed
* < 0 if FIPS test failed * panics the kernel if FIPS test failed
*/ */
static void jent_fips_test(struct rand_data *ec) static void jent_fips_test(struct rand_data *ec)
{ {