diff options
author | 2024-04-30 13:41:37 +0200 | |
---|---|---|
committer | 2024-04-30 23:57:30 +0900 | |
commit | e66480aed4a194f278da1e46ec45221b3983216f (patch) | |
tree | ea085d18d9197c58846ccc24d68fb7319ef23120 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | spi: pic32-sqi: use 'time_left' variable with wait_for_completion_timeout() (diff) | |
download | wireguard-linux-e66480aed4a194f278da1e46ec45221b3983216f.tar.xz wireguard-linux-e66480aed4a194f278da1e46ec45221b3983216f.zip |
spi: pic32: 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>
Link: https://lore.kernel.org/r/20240430114142.28551-6-wsa+renesas@sang-engineering.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions