diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2024-04-30 14:41:35 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-04-30 17:57:28 +0300 |
commit | eaeac043ab842d2e84616ff0412eec0121c1758c (patch) | |
tree | f28c42bb322dc4efaa26d22887d9241c24306965 /tools/perf/scripts/python | |
parent | eef51e99f7b9ecc903a3a9ad9e7ca84dc35c3f52 (diff) | |
download | linux-eaeac043ab842d2e84616ff0412eec0121c1758c.tar.xz |
spi: imx: 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>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20240430114142.28551-4-wsa+renesas@sang-engineering.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions