Skip to content

Commit

Permalink
spi: fsl-lpspi: use true,false for bool variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
zhengbin authored and Mark Brown committed Dec 25, 2019
1 parent 11299c5 commit a68735d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/spi/spi-fsl-lpspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a68735d

Please sign in to comment.