diff options
| author | Wolfram Sang <[email protected]> | 2024-06-04 23:27:31 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-06-20 19:30:10 +0200 |
| commit | 38935f3366801355ac64731d8df1c6bb5d6609ee (patch) | |
| tree | 8483d49a627d404f5dedc7888500aab81e609797 /tools/perf/scripts/python | |
| parent | 58be297b675d919e30a3804f9a08b546994e0d99 (diff) | |
usb: typec: tcpm: 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 <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions