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:
Родитель
f21ecad451
Коммит
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(
|
||||
|
|
Загрузка…
Ссылка в новой задаче