Commit a68735d7 authored by zhengbin's avatar zhengbin Committed by Mark Brown

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
Link: https://lore.kernel.org/r/1577159526-33689-2-git-send-email-zhengbin13@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 11299c5c
...@@ -469,9 +469,9 @@ static int fsl_lpspi_setup_transfer(struct spi_controller *controller, ...@@ -469,9 +469,9 @@ static int fsl_lpspi_setup_transfer(struct spi_controller *controller,
fsl_lpspi->watermark = fsl_lpspi->txfifosize; fsl_lpspi->watermark = fsl_lpspi->txfifosize;
if (fsl_lpspi_can_dma(controller, spi, t)) if (fsl_lpspi_can_dma(controller, spi, t))
fsl_lpspi->usedma = 1; fsl_lpspi->usedma = true;
else else
fsl_lpspi->usedma = 0; fsl_lpspi->usedma = false;
return fsl_lpspi_config(fsl_lpspi); return fsl_lpspi_config(fsl_lpspi);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment