summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-pxa2xx.c
diff options
context:
space:
mode:
authorMarkus Elfring2017-01-13 14:30:43 +0100
committerMark Brown2017-01-17 19:34:25 +0100
commit797236f10a095a1742373bca5f284c5ec8afb446 (patch)
treef53c25716f83d86d0cfea7387cf22ba7373fcfff /drivers/spi/spi-pxa2xx.c
parentspi/ppc4xx: Combine substrings for a message in spi_ppc4xx_of_probe() (diff)
downloadkernel-qcow2-linux-797236f10a095a1742373bca5f284c5ec8afb446.tar.gz
kernel-qcow2-linux-797236f10a095a1742373bca5f284c5ec8afb446.tar.xz
kernel-qcow2-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.c')
0 files changed, 0 insertions, 0 deletions