Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit c87bdcc8 authored by Esben Haabendal's avatar Esben Haabendal Committed by Mark Brown
Browse files

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: default avatarEsben Haabendal <eha@deif.com>
Acked-by: default avatarMartin Hundebøll <martin@geanix.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3e247b0f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);