diff options
author | Yang Li <yang.lee@linux.alibaba.com> | 2022-06-09 10:12:50 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-09 13:57:49 +0300 |
commit | 0356163e5883e298b518cd16517be633824987f9 (patch) | |
tree | 20658e9b09c41f5b0be3f660687141c460eaba0d /drivers/spi/spi-s3c64xx.c | |
parent | a4f26ba2608c9ff736a9ad1348aa8078f0b03f81 (diff) | |
download | linux-0356163e5883e298b518cd16517be633824987f9.tar.xz |
spi: Return true/false (not 1/0) from bool function
Return boolean values ("true" or "false") instead of 1 or 0 from bool
function.
As reported by coccicheck:
./drivers/spi/spi-s3c64xx.c:385:9-10: WARNING: return of 0/1 in function
's3c64xx_spi_can_dma' with return type bool
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220609071250.59509-1-yang.lee@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-s3c64xx.c')
-rw-r--r-- | drivers/spi/spi-s3c64xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index f56d9c819a76..0ce58105dbac 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -382,7 +382,7 @@ static bool s3c64xx_spi_can_dma(struct spi_master *master, if (sdd->rx_dma.ch && sdd->tx_dma.ch) { return xfer->len > (FIFO_LVL_MASK(sdd) >> 1) + 1; } else { - return 0; + return false; } } |