aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorWolfram Sang <[email protected]>2024-04-30 14:10:27 +0200
committerTakashi Iwai <[email protected]>2024-05-08 18:15:06 +0200
commit222a596640295e5f2deb7bd0a805f8f6a3068069 (patch)
tree927bffba3b6112b34639360b0b555e520bf73cf1 /lib/memory-notifier-error-inject.c
parent44f69ddccb66bcdf969c44d8bb5d4dea4d6b2933 (diff)
ALSA: aoa: soundbus: i2sbus: pcm: 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions