diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2024-06-05 00:22:39 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-07-03 17:40:18 +0300 |
commit | d97fb2571a4babec09c5d1bc701a36824ccfa805 (patch) | |
tree | a2cf62a66638d96837dbcf5813c035d0d49acefb /drivers/char | |
parent | 4c0fb1af44b98872320bfb0612b1d05be827fc91 (diff) | |
download | linux-d97fb2571a4babec09c5d1bc701a36824ccfa805.tar.xz |
misc: ti-st: st_kim: use 'time_left' variable with wait_for_completion_interruptible_timeout()
There is a confusing pattern in the kernel to use a variable named 'timeout' to
store the result of wait_for_completion_interruptible_timeout() causing patterns like:
timeout = wait_for_completion_interruptible_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/20240604212240.4529-5-wsa+renesas@sang-engineering.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions