diff options
author | zhengbin <zhengbin13@huawei.com> | 2019-12-24 04:52:05 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-12-25 19:17:25 +0100 |
commit | e6a8b2cc514ccacb9e1885dcc7be0a3251ab4843 (patch) | |
tree | 8e72393dee0a97b3a57806eaece916e7d5213ff0 /drivers/spi/spi-imx.c | |
parent | spi: fsl-lpspi: use true,false for bool variable (diff) | |
download | linux-e6a8b2cc514ccacb9e1885dcc7be0a3251ab4843.tar.xz linux-e6a8b2cc514ccacb9e1885dcc7be0a3251ab4843.zip |
spi: imx: use true,false for bool variable
Fixes coccicheck warning:
drivers/spi/spi-imx.c:1233:2-17: WARNING: Assignment of 0/1 to bool variable
drivers/spi/spi-imx.c:1235:2-17: 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-3-git-send-email-zhengbin13@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-imx.c')
-rw-r--r-- | drivers/spi/spi-imx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 49f0099db0cb..f4f28a400a96 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -1230,9 +1230,9 @@ static int spi_imx_setupxfer(struct spi_device *spi, } if (spi_imx_can_dma(spi_imx->bitbang.master, spi, t)) - spi_imx->usedma = 1; + spi_imx->usedma = true; else - spi_imx->usedma = 0; + spi_imx->usedma = false; if (is_imx53_ecspi(spi_imx) && spi_imx->slave_mode) { spi_imx->rx = mx53_ecspi_rx_slave; |