From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> Date: Fri, 13 Jan 2017 17:50:23 +0100 Several update suggestions were taken into account from static source code analysis. Markus Elfring (17): Use kcalloc() in spi_register_board_info() Adjust checks for null pointers in two functions fsl: Use kcalloc() in of_fsl_spi_get_chipselects() fsl: Use kmalloc_array() in of_fsl_spi_get_chipselects() fsl: Combine substrings for two messages mpc52xx: Use kmalloc_array() in mpc52xx_spi_probe() mpc52xx: Combine substrings for two messages ppc4xx: Use kcalloc() in spi_ppc4xx_of_probe() ppc4xx: Combine substrings for a message in spi_ppc4xx_of_probe() ppc4xx: Adjust checks for null pointers in two functions topcliff-pch: Use kcalloc() in pch_spi_handle_dma() topcliff-pch: Improve size determinations in pch_spi_probe() topcliff-pch: Delete an unnecessary return statement in two functions topcliff-pch: Adjust six checks for null pointers topcliff-pch: Combine substrings for four messages topcliff-pch: Delete an error message for a failed memory allocation in pch_spi_set_tx() topcliff-pch: One check less in pch_spi_set_tx() drivers/spi/spi-fsl-spi.c | 17 +++++----- drivers/spi/spi-mpc52xx.c | 12 +++---- drivers/spi/spi-ppc4xx.c | 15 ++++----- drivers/spi/spi-topcliff-pch.c | 71 +++++++++++++++++++++--------------------- drivers/spi/spi.c | 10 +++--- 5 files changed, 63 insertions(+), 62 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html