summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2024-06-05 00:22:39 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-07-03 17:40:18 +0300
commitd97fb2571a4babec09c5d1bc701a36824ccfa805 (patch)
treea2cf62a66638d96837dbcf5813c035d0d49acefb /drivers/char
parent4c0fb1af44b98872320bfb0612b1d05be827fc91 (diff)
downloadlinux-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