diff options
author | Alexander Sverdlin <alexander.sverdlin@nokia.com> | 2015-02-27 10:30:15 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-06 14:45:23 -0500 |
commit | 7183d1ebda477c48e5f51f854a766c96b6c0e142 (patch) | |
tree | 91c34e1b7e4b0bf0cd6a5d0b518fb4214e8a967e | |
parent | 85fa4e1f094183d230c47fa1e83373f692dc05ec (diff) |
spi: pl022: Remove dead code
"flag" variable does nothing, remove it.
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-pl022.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index a45406aa2b14..e96189c7834c 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c | |||
@@ -1256,7 +1256,6 @@ static irqreturn_t pl022_interrupt_handler(int irq, void *dev_id) | |||
1256 | struct pl022 *pl022 = dev_id; | 1256 | struct pl022 *pl022 = dev_id; |
1257 | struct spi_message *msg = pl022->cur_msg; | 1257 | struct spi_message *msg = pl022->cur_msg; |
1258 | u16 irq_status = 0; | 1258 | u16 irq_status = 0; |
1259 | u16 flag = 0; | ||
1260 | 1259 | ||
1261 | if (unlikely(!msg)) { | 1260 | if (unlikely(!msg)) { |
1262 | dev_err(&pl022->adev->dev, | 1261 | dev_err(&pl022->adev->dev, |
@@ -1305,8 +1304,7 @@ static irqreturn_t pl022_interrupt_handler(int irq, void *dev_id) | |||
1305 | 1304 | ||
1306 | readwriter(pl022); | 1305 | readwriter(pl022); |
1307 | 1306 | ||
1308 | if ((pl022->tx == pl022->tx_end) && (flag == 0)) { | 1307 | if (pl022->tx == pl022->tx_end) { |
1309 | flag = 1; | ||
1310 | /* Disable Transmit interrupt, enable receive interrupt */ | 1308 | /* Disable Transmit interrupt, enable receive interrupt */ |
1311 | writew((readw(SSP_IMSC(pl022->virtbase)) & | 1309 | writew((readw(SSP_IMSC(pl022->virtbase)) & |
1312 | ~SSP_IMSC_MASK_TXIM) | SSP_IMSC_MASK_RXIM, | 1310 | ~SSP_IMSC_MASK_TXIM) | SSP_IMSC_MASK_RXIM, |