[PATCH 4/7] spi: altera_spi: Remove redundant assignment

Alexander Shiyan shc_work at mail.ru
Sat Feb 15 23:40:47 EST 2014


Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
 drivers/spi/altera_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c
index 60e124f..8803d9e 100644
--- a/drivers/spi/altera_spi.c
+++ b/drivers/spi/altera_spi.c
@@ -112,7 +112,7 @@ static void altera_spi_cs_inactive(struct spi_device *spi)
 static unsigned altera_spi_do_xfer(struct spi_device *spi, struct spi_transfer *t)
 {
 	struct altera_spi *altera_spi = container_of(spi->master, struct altera_spi, master);
-	int word_len = spi->bits_per_word;
+	int word_len;
 	unsigned retval = 0;
 	u32 txval;
 	u32 rxval;
-- 
1.8.3.2




More information about the barebox mailing list