[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <fbf6c7ef-3680-40ec-8c90-121e6a635b8d@baylibre.com>
Date: Wed, 7 May 2025 08:49:46 -0500
From: David Lechner <dlechner@...libre.com>
To: Colin Ian King <colin.i.king@...il.com>,
Lars-Peter Clausen <lars@...afoo.de>,
Michael Hennerich <Michael.Hennerich@...log.com>,
Antoniu Miclaus <antoniu.miclaus@...log.com>,
Jonathan Cameron <jic23@...nel.org>, Nuno Sá
<nuno.sa@...log.com>, Andy Shevchenko <andy@...nel.org>,
linux-iio@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] iio: admv1013: replace redundant ternary operator
with just len
On 5/7/25 8:45 AM, Colin Ian King wrote:
> The variable ret is being assigned a return value and non-zero error
> return paths are taken at all stages. At the end of the function ret
> is always zero, so the ternary operator checking for zero ret is
> redundant and can be replaced with just len instead.
>
> Signed-off-by: Colin Ian King <colin.i.king@...il.com>
> ---
Reviewed-by: David Lechner <dlechner@...libre.com>
Powered by blists - more mailing lists