Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spi: stm32: Use NULL instead of 0 for pointer

Pointers should use NULL instead of explicit '0', as pointed out by
sparse:

spi-stm32.c:1659:65: warning: Using plain integer as NULL pointer

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260216085816.69888-2-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
5e897a49 52531750

+1 -1
+1 -1
drivers/spi/spi-stm32.c
··· 1656 1656 ret = stm32_spi_prepare_rx_dma_mdma_chaining(spi, xfer, &rx_dma_conf, 1657 1657 &rx_dma_desc, &rx_mdma_desc); 1658 1658 if (ret) { /* RX DMA MDMA chaining not possible, fallback to DMA only */ 1659 - rx_dma_conf.peripheral_config = 0; 1659 + rx_dma_conf.peripheral_config = NULL; 1660 1660 rx_dma_desc = NULL; 1661 1661 } 1662 1662 }