spi: spi-fsl-dspi: Drop unreachable else if statement
authorEsben Haabendal <eha@deif.com>
Wed, 20 Jun 2018 07:34:31 +0000 (09:34 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 20 Jun 2018 13:45:36 +0000 (14:45 +0100)
The if statement just above this if/else statement triggers on the same
condition, and then invalidates it.

Signed-off-by: Esben Haabendal <eha@deif.com>
Acked-by: Martin Hundebøll <martin@geanix.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c

index 0630962..3ca9b96 100644 (file)
@@ -593,8 +593,7 @@ static int dspi_eoq_write(struct fsl_dspi *dspi)
                        dspi_pushr |= SPI_PUSHR_EOQ;
                        if ((dspi->cs_change) && (!dspi->len))
                                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);