Re: [PATCH] gpio: aggregator: simplify aggr_parse() with scoped bitmap

From: Linus Walleij
Date: Wed Oct 02 2024 - 09:18:09 EST


On Mon, Sep 30, 2024 at 6:32 PM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:

> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>
> The bitmap allocated in aggr_parse() is always freed before the function
> returns so use __free(bitmap) to simplify it and drop the goto label.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>

Very neat!
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij