[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180620073442.20913-2-esben.haabendal@gmail.com>
Date: Wed, 20 Jun 2018 09:34:31 +0200
From: Esben Haabendal <esben.haabendal@...il.com>
To: Mark Brown <broonie@...nel.org>, linux-spi@...r.kernel.org
Cc: Kurt Kanzenbach <kurt@...utronix.de>,
Angelo Dureghello <angelo@...am.it>,
Nikita Yushchenko <nikita.yoush@...entembedded.com>,
Sanchayan Maity <maitysanchayan@...il.com>,
Yuan Yao <yao.yuan@....com>, linux-kernel@...r.kernel.org,
Esben Haabendal <eha@...f.com>,
Martin Hundebøll <martin@...nix.com>
Subject: [PATCH 01/12] spi: spi-fsl-dspi: Drop unreachable else if statement
From: Esben Haabendal <eha@...f.com>
The if statement just above this if/else statement triggers on the same
condition, and then invalidates it.
Signed-off-by: Esben Haabendal <eha@...f.com>
Cc: Martin Hundebøll <martin@...nix.com>
---
drivers/spi/spi-fsl-dspi.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c
index 0630962ce442..3ca9b9608801 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);
--
2.17.1
Powered by blists - more mailing lists