diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-01-13 16:30:43 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-01-17 21:34:25 +0300 |
commit | 797236f10a095a1742373bca5f284c5ec8afb446 (patch) | |
tree | f53c25716f83d86d0cfea7387cf22ba7373fcfff /arch/s390/configs/default_defconfig | |
parent | ffcaef5ac27b62b480b94036615b3ae4f1b725fe (diff) | |
download | linux-797236f10a095a1742373bca5f284c5ec8afb446.tar.xz |
spi/ppc4xx: Use kcalloc() in spi_ppc4xx_of_probe()
* A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus reuse the corresponding function "kcalloc".
This issue was detected by using the Coccinelle software.
* Replace the specification of a data type by a pointer dereference
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: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'arch/s390/configs/default_defconfig')
0 files changed, 0 insertions, 0 deletions