summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2024-04-30 14:41:40 +0300
committerMark Brown <broonie@kernel.org>2024-04-30 17:57:32 +0300
commit594aa75d6bdda85b5fd027a5056d8cd1345c1db3 (patch)
tree6ce763791bf3e508f246698041f62caa2b84eaca /tools/perf/scripts/python/exported-sql-viewer.py
parent83a3f1ba60d6e2f73c9dd2627a8ce41867dbc46b (diff)
downloadlinux-594aa75d6bdda85b5fd027a5056d8cd1345c1db3.tar.xz
spi: xlp: 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. Fix to the proper variable type 'unsigned long' while here. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/20240430114142.28551-9-wsa+renesas@sang-engineering.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions