diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2024-04-30 13:41:36 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-04-30 23:57:29 +0900 |
commit | a7c79e50a26cb619400ccc6294dbd7d8c24a0341 (patch) | |
tree | 9059e58b1f49677ed319f283cc7249a7f7d527b0 /drivers/iio | |
parent | eaeac043ab842d2e84616ff0412eec0121c1758c (diff) |
spi: pic32-sqi: use 'time_left' variable with wait_for_completion_timeout()
There is a confusing pattern in the kernel to use a variable named 'timeout' to
store the result of wait_for_completion_timeout() causing patterns like:
timeout = wait_for_completion_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>
Link: https://lore.kernel.org/r/20240430114142.28551-5-wsa+renesas@sang-engineering.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions