staging: greybus: camera: Use kcalloc for array's memory allocation.
authorElise Lennion <elise.lennion@gmail.com>
Wed, 12 Oct 2016 17:14:14 +0000 (14:14 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:27:23 +0000 (10:27 +0200)
commitc4fc2ebcbf762a1fe827931d670452aa27abef00
treed9470f9d2742a852f3472daec0cf41e1fcfc482f
parent9d3318f48ce383cdd261719f4fa95c979bdd7ce4
staging: greybus: camera: Use kcalloc for array's memory allocation.

Fix checkpatch warning:

WARNING: Prefer kcalloc over kzalloc with multiply

kcalloc is designed to allocate memory for arrays, its use is
preferable than kzalloc in these cases.

Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/camera.c