Skip to contentSkip to conversation

spi: fsl-espi: Remove unused bits_per_word variable in fsl_espi_bufs

PATCH Applied Axel Lin 2 participants 2 messages Mar 21, 2014 SPI

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 spi: fsl-espi: Remove unused bits_per_word variable in fsl_espi_bufs

---
 drivers/spi/spi-fsl-espi.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/spi/spi-fsl-espi.c +0 -5
index 428dc7a..6fb2b75 100644
@@ -219,13 +219,8 @@ static int fsl_espi_bufs(struct spi_device *spi, struct spi_transfer *t)
 	struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master);
 	struct fsl_espi_reg *reg_base = mpc8xxx_spi->reg_base;
 	unsigned int len = t->len;
-	u8 bits_per_word;
 	int ret;
 
-	bits_per_word = spi->bits_per_word;
-	if (t->bits_per_word)
-		bits_per_word = t->bits_per_word;
-
 	mpc8xxx_spi->len = t->len;
 	len = roundup(len, 4) / 4;
 
Signature · 8 lines
1.8.3.2



--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html