]> 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)
commit9707a5f824cd6870aa03171d9783300e8e40dff6
treeef5b97cfbe4565b5a122a2c424b9ed9b28fab6cd
parentac6fd1c66e3c98aae4122235aa01852b2a850da5
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