diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-01-13 14:30:43 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-01-17 19:34:25 +0100 |
commit | 797236f10a095a1742373bca5f284c5ec8afb446 (patch) | |
tree | f53c25716f83d86d0cfea7387cf22ba7373fcfff /drivers/spi/spi-pxa2xx-pci.c | |
parent | spi/ppc4xx: Combine substrings for a message in spi_ppc4xx_of_probe() (diff) | |
download | linux-797236f10a095a1742373bca5f284c5ec8afb446.tar.xz linux-797236f10a095a1742373bca5f284c5ec8afb446.zip |
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 'drivers/spi/spi-pxa2xx-pci.c')
0 files changed, 0 insertions, 0 deletions