[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5h63pricryzzm45kq6eshtvqzkvko7kc6eq446c2jyqcl5z4zn@it6dx4ouvcvj>
Date: Fri, 28 Jun 2024 17:16:33 +0200
From: Thierry Reding <thierry.reding@...il.com>
To: Wolfram Sang <wsa+renesas@...g-engineering.com>
Cc: linux-kernel@...r.kernel.org, Dmitry Osipenko <digetx@...il.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>, Jonathan Hunter <jonathanh@...dia.com>,
linux-media@...r.kernel.org, linux-tegra@...r.kernel.org
Subject: Re: [PATCH 7/8] media: tegra-vde: use 'time_left' variable with
wait_for_completion_interruptible_timeout()
On Mon, Jun 03, 2024 at 11:28:38AM GMT, Wolfram Sang wrote:
> There is a confusing pattern in the kernel to use a variable named 'timeout' to
> store the result of wait_for_completion_interruptible_timeout() causing patterns like:
>
> timeout = wait_for_completion_interruptible_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@...g-engineering.com>
> ---
> drivers/media/platform/nvidia/tegra-vde/h264.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
Acked-by: Thierry Reding <treding@...dia.com>
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists