]> git.baikalelectronics.ru Git - kernel.git/commit
spi: imx: remove unnecessary check in spi_imx_can_dma
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Tue, 17 Jul 2018 14:31:53 +0000 (16:31 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 24 Jul 2018 14:58:32 +0000 (15:58 +0100)
commit73fc40e40304c8e7240b4bbda7a9438e7b30f4c9
tree910814e5250ebfd3292db5044ecb26a37c91d430
parentced721bf003736f0c32bdbf728cba378935167c1
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 <maxime.chevallier@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c