[PATCH] staging: vc04_services: use 'time_left' variable with wait_for_completion_timeout()

Stefan Wahren wahrenst at gmx.net
Thu Jun 20 13:42:05 PDT 2024


Am 20.06.24 um 20:25 schrieb Wolfram Sang:
> 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 at sang-engineering.com>
Reviewed-by: Stefan Wahren <wahrenst at gmx.net>

Thanks



More information about the linux-arm-kernel mailing list