diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2024-06-03 11:15:37 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2024-06-12 15:01:09 +0300 |
commit | a37f6947ff07896d5132d6fbfec538de01c74287 (patch) | |
tree | 8de8f06ec1e71b550e9836666e70620080f430f0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0c0668813cc0bb919b2b693c411e1d7d0dfdf39b (diff) |
wifi: p54: 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.
Fix to the proper variable type 'long' while here.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240603091541.8367-5-wsa+renesas@sang-engineering.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions