diff options
author | Alexander E. Patrakov <patrakov@gmail.com> | 2019-09-18 12:28:49 +0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-10-05 01:06:18 +1000 |
commit | 819eec4090aeb18169422a417abe3660bc9d571a (patch) | |
tree | a473182e80f57458f775896adde87160f345ca47 /crypto/jitterentropy.c | |
parent | 2afc161d3d35b0cfb77c8fe5a63c5dd65c2ea79c (diff) | |
download | linux-crypto-819eec4090aeb18169422a417abe3660bc9d571a.tar.gz linux-crypto-819eec4090aeb18169422a417abe3660bc9d571a.zip |
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>
Diffstat (limited to 'crypto/jitterentropy.c')
-rw-r--r-- | crypto/jitterentropy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/jitterentropy.c b/crypto/jitterentropy.c index 77fa2120..9597f9f5 100644 --- a/crypto/jitterentropy.c +++ b/crypto/jitterentropy.c @@ -172,7 +172,7 @@ static __u64 jent_loop_shuffle(struct rand_data *ec, * implies that careful retesting must be done. * * Input: - * @ec entropy collector struct -- may be NULL + * @ec entropy collector struct * @time time stamp to be injected * @loop_cnt if a value not equal to 0 is set, use the given value as number of * loops to perform the folding @@ -400,8 +400,8 @@ static void jent_gen_entropy(struct rand_data *ec) * primes the test if needed. * * Return: - * 0 if FIPS test passed - * < 0 if FIPS test failed + * returns normally if FIPS test passed + * panics the kernel if FIPS test failed */ static void jent_fips_test(struct rand_data *ec) { |