diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2024-04-30 14:14:42 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-05-10 17:15:24 +0800 |
commit | f8449cd38c515395ea44f0347750113fc002717d (patch) | |
tree | 8d40a10b1a2f2b0e5b3d6a70a2c22f484833869e /crypto/sm2.c | |
parent | 210b65f5cb4a366976de0b3090021473a449712d (diff) | |
download | linux-crypto-f8449cd38c515395ea44f0347750113fc002717d.tar.gz linux-crypto-f8449cd38c515395ea44f0347750113fc002717d.zip |
crypto: api - use 'time_left' variable with wait_for_completion_killable_timeout()
There is a confusing pattern in the kernel to use a variable named 'timeout' to
store the result of wait_for_completion_killable_timeout() causing patterns like:
timeout = wait_for_completion_killable_timeout(...)
if (!timeout) return -ETIMEDOUT;
with all kinds of permutations. Use 'time_left' as a variable to make the code
self explaining.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions