From: Maxime Chevallier Date: Tue, 17 Jul 2018 14:31:53 +0000 (+0200) Subject: spi: imx: remove unnecessary check in spi_imx_can_dma X-Git-Tag: for-linus-20180825~114^2^2~16 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=0486dd4d6111b969a81b9ce63bfaf22e414839a4;p=linux-block.git spi: imx: remove unnecessary check in spi_imx_can_dma The spi_imx_can_dma function computes the watermark level so that the transfer will fit in exactly N bursts (without a remainder). The smallest watermark level possible being one FIFO entry per burst, we can't never have a case where the transfer size isn't divsiible by 1. Remove the extra check for the wml being different than 0. Signed-off-by: Maxime Chevallier Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 3ae706dac660..ef6d3648396a 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -229,9 +229,6 @@ static bool spi_imx_can_dma(struct spi_master *master, struct spi_device *spi, break; } - if (i == 0) - return false; - spi_imx->wml = i; spi_imx->dynamic_burst = 0;