Re: [PATCH v1 2/2] iio: core: Calculate alloc_size only once in iio_device_alloc()

From: David Lechner
Date: Mon Mar 04 2024 - 09:38:56 EST


On Mon, Mar 4, 2024 at 8:07 AM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx>
> ---

Reviewed-by: David Lechner <dlechner@xxxxxxxxxxxx>