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 <eha@deif.com> Acked-by: Martin Hundebøll <martin@geanix.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
3e247b0fb5
commit
c87bdcc89d
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue