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

From: Stefan Wahren
Date: Thu Jun 20 2024 - 16:43:12 EST


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@xxxxxxxxxxxxxxxxxxxx>
Reviewed-by: Stefan Wahren <wahrenst@xxxxxxx>

Thanks