1
linux/drivers/media/platform/allegro-dvt
Wolfram Sang 0016b5a5c7 media: allegro: 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, also for the code path using 'tmo' as a variable.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-08-09 07:56:39 +02:00
..
allegro-core.c media: allegro: use 'time_left' variable with wait_for_completion_timeout() 2024-08-09 07:56:39 +02:00
allegro-mail.c
allegro-mail.h
Kconfig
Makefile
nal-h264.c
nal-h264.h
nal-hevc.c
nal-hevc.h
nal-rbsp.c
nal-rbsp.h