mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
gpio: max3191x: Use bitmap_free() to free bitmap
kfree() and bitmap_free() are the same. But using the later is more consistent when freeing memory allocated with bitmap_alloc(). Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
This commit is contained in:
committed by
Bartosz Golaszewski
parent
f21ecad451
commit
01d130a31a
@@ -326,7 +326,7 @@ static void gpiod_set_array_single_value_cansleep(unsigned int ndescs,
|
||||
bitmap_zero(values, ndescs);
|
||||
|
||||
gpiod_set_array_value_cansleep(ndescs, desc, info, values);
|
||||
kfree(values);
|
||||
bitmap_free(values);
|
||||
}
|
||||
|
||||
static struct gpio_descs *devm_gpiod_get_array_optional_count(
|
||||
|
||||
Reference in New Issue
Block a user