ASoC: use 'time_left' instead of 'timeout' with
authorMark Brown <broonie@kernel.org>
Tue, 7 May 2024 01:38:11 +0000 (10:38 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 7 May 2024 01:38:11 +0000 (10:38 +0900)
commit741e987d04324810a832205052872be45ecaf9f6
treed0f4e3542c0f9e8b0c36dec14bd3adc18cf356f3
parentd98b07124ba42ba84740ca27f53ffba02abc1606
parent4e1f953a4a447b5e001655b453505c4c15904c61
ASoC: use 'time_left' instead of 'timeout' with

Merge series from Wolfram Sang <wsa+renesas@sang-engineering.com>:

There is a confusing pattern in the kernel to use a variable named 'timeout' to
store the result of wait_for_*() functions 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
obvious and self explaining.

This is part of a tree-wide series. The rest of the patches can be found here
(some parts may still be WIP):

git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/time_left

Because these patches are generated, I audit them before sending. This is why I
will send series step by step. Build bot is happy with these patches, though.
No functional changes intended.