]> git.karo-electronics.de Git - linux-beck.git/commit
ste_dma40: Replace four kzalloc() calls by kcalloc() in d40_hw_detect_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 17 Sep 2016 07:56:32 +0000 (09:56 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Sep 2016 17:36:17 +0000 (23:06 +0530)
commite349d4b7317818cbb21096ead26420c80819ddd4
tree1765a3db30c651d5747bf5a81170619ae27b8730
parent71660223f50036e67a2a66cf55815fa665639d3a
ste_dma40: Replace four kzalloc() calls by kcalloc() in d40_hw_detect_init()

* The script "checkpatch.pl" can point information out like the following.

  WARNING: Prefer kcalloc over kzalloc with multiply

  Thus fix the affected source code places.

* 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>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ste_dma40.c