Home
last modified time | relevance | path

Searched hist:a2ead3445a6317c5d2b53711cf9a98e54c395223 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/net/wireless/zydas/zd1211rw/
H A Dzd_usb.ca2ead3445a6317c5d2b53711cf9a98e54c395223 Mon Jun 03 09:15:39 UTC 2024 Wolfram Sang <wsa+renesas@sang-engineering.com> wifi: zd1211rw: 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>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240603091541.8367-7-wsa+renesas@sang-engineering.com
a2ead3445a6317c5d2b53711cf9a98e54c395223 Mon Jun 03 09:15:39 UTC 2024 Wolfram Sang <wsa+renesas@sang-engineering.com> wifi: zd1211rw: 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>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240603091541.8367-7-wsa+renesas@sang-engineering.com