Re: [PATCH v3 03/10] gpio: aggregator: move GPIO forwarder allocation in a dedicated function

Andy Shevchenko
2025-04-17T16:56:35Z

On Wed, Apr 16, 2025 at 04:08:11PM +0200, Thomas Richard wrote:
> Move the GPIO forwarder allocation and static initialization in a dedicated
> function.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

...

> + fwd = devm_kzalloc(dev, struct_size(fwd, tmp, fwd_tmp_size(ngpios)),
> + GFP_KERNEL);

You can keep it one line.

> + if (!fwd)
> + return ERR_PTR(-ENOMEM);

--
With Best Regards,
Andy Shevchenko