diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2024-04-30 14:41:34 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-04-30 17:57:27 +0300 |
commit | eef51e99f7b9ecc903a3a9ad9e7ca84dc35c3f52 (patch) | |
tree | e30c07c29b9d8800175e5afa9f30f6387bcde476 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7dbbbb1206dd0b695b9a76d3b758c8a689f1aa52 (diff) | |
download | linux-eef51e99f7b9ecc903a3a9ad9e7ca84dc35c3f52.tar.xz |
spi: fsl-lpspi: 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-3-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