]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mvebu: Use kcalloc() in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 19 Apr 2017 19:08:54 +0000 (21:08 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Sat, 22 Apr 2017 02:49:34 +0000 (19:49 -0700)
commit34819fc7ef0fb94307f24be7397bbc2a75c42420
treeef5b97cfbe4565b5a122a2c424b9ed9b28fab6cd
parentac50320761bb46f8658a3e911e1ecfd220bb254c
clk: mvebu: 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: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/mvebu/common.c