Commit cfcd957
ASoC: codecs: wm8962: 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]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Charles Keepax <[email protected]>
Signed-off-by: Mark Brown <[email protected]>1 parent ba2a2c3 commit cfcd957
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2886 | 2886 | | |
2887 | 2887 | | |
2888 | 2888 | | |
2889 | | - | |
| 2889 | + | |
2890 | 2890 | | |
2891 | 2891 | | |
2892 | 2892 | | |
| |||
2974 | 2974 | | |
2975 | 2975 | | |
2976 | 2976 | | |
2977 | | - | |
| 2977 | + | |
2978 | 2978 | | |
2979 | | - | |
| 2979 | + | |
2980 | 2980 | | |
2981 | | - | |
2982 | | - | |
| 2981 | + | |
| 2982 | + | |
2983 | 2983 | | |
2984 | | - | |
| 2984 | + | |
2985 | 2985 | | |
2986 | 2986 | | |
2987 | 2987 | | |
| |||
0 commit comments