iio: adc: xilinx-xadc: use devm_krealloc()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 24 Aug 2020 17:38:59 +0000 (19:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Sep 2020 11:32:07 +0000 (13:32 +0200)
commit750628c79bb10ada3d404f576d476c3cef2da6fb
tree4715153e3d0ff06fdfddee7db17350e8e3e2008d
parentbb19133fc89b31eb6b490b25cb92626a10700c82
iio: adc: xilinx-xadc: use devm_krealloc()

Use the managed variant of krealloc() and shrink the code a bit.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20200824173859.4910-4-brgl@bgdev.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/xilinx-xadc-core.c