diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2024-04-30 13:41:33 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-04-30 23:57:26 +0900 |
commit | 7dbbbb1206dd0b695b9a76d3b758c8a689f1aa52 (patch) | |
tree | a6bddd0f17bc9abee6a092584c8ebfce30760539 /drivers/spi/spi-fsl-lpspi.c | |
parent | 47766799f546249813e97a0ccde8978ba114e89f (diff) |
spi: armada-3700: 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.
Fix to the proper variable type 'unsigned long' while here.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20240430114142.28551-2-wsa+renesas@sang-engineering.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-fsl-lpspi.c')
0 files changed, 0 insertions, 0 deletions