[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMknhBFioXpPwTqTYEiwE2U2CEnYMwqu8SSFegdM3wfRpBSnLQ@mail.gmail.com>
Date: Mon, 4 Mar 2024 08:38:35 -0600
From: David Lechner <dlechner@...libre.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Jonathan Cameron <Jonathan.Cameron@...wei.com>, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org, Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>
Subject: Re: [PATCH v1 2/2] iio: core: Calculate alloc_size only once in iio_device_alloc()
On Mon, Mar 4, 2024 at 8:07 AM Andy Shevchenko
<andriy.shevchenko@...ux.intel.com> wrote:
>
> No need to rewrite the value, instead use 'else' branch.
> This will also help further refactoring the code later on.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
> ---
Reviewed-by: David Lechner <dlechner@...libre.com>
Powered by blists - more mailing lists