From: Esben Haabendal Date: Wed, 20 Jun 2018 07:34:31 +0000 (+0200) Subject: spi: spi-fsl-dspi: Drop unreachable else if statement X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c87bdcc89d867df13fbb92d05323337bfd15d579;p=linux.git 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: Esben Haabendal Acked-by: Martin Hundebøll Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 0630962ce442e..3ca9b9608801f 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -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);