未验证 提交 c87bdcc8 编写于 作者: E Esben Haabendal 提交者: Mark Brown

spi: spi-fsl-dspi: Drop unreachable else if statement

The if statement just above this if/else statement triggers on the same
condition, and then invalidates it.
Signed-off-by: NEsben Haabendal <eha@deif.com>
Acked-by: NMartin Hundebøll <martin@geanix.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 3e247b0f
...@@ -593,8 +593,7 @@ static int dspi_eoq_write(struct fsl_dspi *dspi) ...@@ -593,8 +593,7 @@ static int dspi_eoq_write(struct fsl_dspi *dspi)
dspi_pushr |= SPI_PUSHR_EOQ; dspi_pushr |= SPI_PUSHR_EOQ;
if ((dspi->cs_change) && (!dspi->len)) if ((dspi->cs_change) && (!dspi->len))
dspi_pushr &= ~SPI_PUSHR_CONT; dspi_pushr &= ~SPI_PUSHR_CONT;
} else if (tx_word && (dspi->len == 1)) }
dspi_pushr |= SPI_PUSHR_EOQ;
regmap_write(dspi->regmap, SPI_PUSHR, dspi_pushr); regmap_write(dspi->regmap, SPI_PUSHR, dspi_pushr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册