diff options
author | zhengbin <zhengbin13@huawei.com> | 2019-12-24 06:52:04 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-12-25 21:17:09 +0300 |
commit | a68735d7975dde1392f408417c6b5f24c6bf9358 (patch) | |
tree | 3c5c39079c95a36986b27b399cdc81d9ee026f5d /drivers/spi/spi-fsl-lpspi.c | |
parent | 11299c5cd8868479e9acfc525ba3c2e882c7ba0c (diff) | |
download | linux-a68735d7975dde1392f408417c6b5f24c6bf9358.tar.xz |
spi: fsl-lpspi: use true,false for bool variable
Fixes coccicheck warning:
drivers/spi/spi-fsl-lpspi.c:472:2-19: WARNING: Assignment of 0/1 to bool variable
drivers/spi/spi-fsl-lpspi.c:474:2-19: WARNING: Assignment of 0/1 to bool variable
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Link: https://lore.kernel.org/r/1577159526-33689-2-git-send-email-zhengbin13@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-fsl-lpspi.c')
-rw-r--r-- | drivers/spi/spi-fsl-lpspi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c index 2cc0ddb4a988..56855d5e9e8b 100644 --- a/drivers/spi/spi-fsl-lpspi.c +++ b/drivers/spi/spi-fsl-lpspi.c @@ -469,9 +469,9 @@ static int fsl_lpspi_setup_transfer(struct spi_controller *controller, fsl_lpspi->watermark = fsl_lpspi->txfifosize; if (fsl_lpspi_can_dma(controller, spi, t)) - fsl_lpspi->usedma = 1; + fsl_lpspi->usedma = true; else - fsl_lpspi->usedma = 0; + fsl_lpspi->usedma = false; return fsl_lpspi_config(fsl_lpspi); } |