diff options
author | Markus Elfring | 2016-09-17 09:56:32 +0200 |
---|---|---|
committer | Vinod Koul | 2016-09-26 19:36:17 +0200 |
commit | e349d4b7317818cbb21096ead26420c80819ddd4 (patch) | |
tree | 1765a3db30c651d5747bf5a81170619ae27b8730 /drivers/dma/dma-jz4740.c | |
parent | ste_dma40: Improve a size determination in d40_of_probe() (diff) | |
download | kernel-qcow2-linux-e349d4b7317818cbb21096ead26420c80819ddd4.tar.gz kernel-qcow2-linux-e349d4b7317818cbb21096ead26420c80819ddd4.tar.xz kernel-qcow2-linux-e349d4b7317818cbb21096ead26420c80819ddd4.zip |
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>
Diffstat (limited to 'drivers/dma/dma-jz4740.c')
0 files changed, 0 insertions, 0 deletions