On Mon, Mar 4, 2024 at 6:36 PM Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > > There is no need to repeat for-loop twice in the error path in > gpiochip_add_data_with_key(). Deduplicate it. While at it, > rename loop variable to be more specific and avoid ambguity. > > It also properly unwinds the SRCU, i.e. in reversed order of allocating. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> > --- Applied, thanks! Bart