gpio: aggregator: simplify aggr_parse() with scoped bitmap
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 30 Sep 2024 16:32:07 +0000 (18:32 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 2 Oct 2024 14:32:46 +0000 (16:32 +0200)
commit22dec5aa596ef805cccbcd3fbe5ebffbcb4fa559
treecd6f384b08f42237c0833c49d9c6505e5278d7d8
parent700cdf7ed00f0cf20fdcef33d56e862768eb1008
gpio: aggregator: simplify aggr_parse() with scoped bitmap

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.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20240930163207.80276-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-aggregator.c