[media] RedRat3: Use kcalloc() in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 13 Oct 2016 06:35:57 +0000 (03:35 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 18 Nov 2016 12:34:39 +0000 (10:34 -0200)
commit0bebaa5f01bc018cd0246997d2b00f1ed44964a8
treedff4ae4d603974a257f5a18bd73aa2e4cdf66a90
parent6037b3ca28f4258d913dbe77248fd77827702ae3
[media] RedRat3: Use kcalloc() in two functions

* Multiplications for the size determination of memory allocations
  indicated that array data structures should be processed.
  Thus use the corresponding function "kcalloc".

  This issue was detected by using the Coccinelle software.

* Replace the specification of data types by pointer dereferences
  to make the corresponding size determination a bit safer according to
  the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/redrat3.c