Staging: iio: adc: Fix warning prefer kmalloc_array over kmalloc
authorDarshana Padmadas <darshanapadmadas@gmail.com>
Sat, 20 Sep 2014 13:00:19 +0000 (18:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Sep 2014 14:58:47 +0000 (07:58 -0700)
commit5b12d0ac20dd9084995d10e1ec5bd43b7ec90f41
tree499ef4d86676bdcdacf7a1c596f5185e3fcf886e
parent8deab4754c478149f8a139d6f54dc8b3ff665724
Staging: iio: adc: Fix warning prefer kmalloc_array over kmalloc

This patch fixes the checkpatch warning:
WARNING: Prefer kmalloc_array over kmalloc with multiply

kmalloc_array is preffered for allocating for arrays.

Signed-off-by: Darshana Padmadas <darshanapadmadas@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/adc/mxs-lradc.c