]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: xilinx: use devm_krealloc() instead of kfree() + kcalloc()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 30 Nov 2020 14:27:58 +0000 (15:27 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 9 Jan 2021 14:25:26 +0000 (14:25 +0000)
commit16ef117af8b71fdb33fb645ef4e72b5ba8dcd01f
tree9b38fd501f45665d49b923ba43465434b4e02494
parent4eb736e361cb3c175aefcf49f3427ab49bed7eb8
iio: adc: xilinx: use devm_krealloc() instead of kfree() + kcalloc()

We now have devm_krealloc() in the kernel Use it indstead of calling
kfree() and kcalloc() separately.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Tested-by: Anand Ashok Dumbre <anandash@xilinx.com>
Reviewed-by: Anand Ashok Dumbre <anandash@xilinx.com>
Link: https://lore.kernel.org/r/20201130142759.28216-3-brgl@bgdev.pl
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/xilinx-xadc-core.c