From: Wei Yongjun Date: Wed, 13 Mar 2013 13:29:12 +0000 (+0800) Subject: spi: remove unused variable in tegra_slink_read_rx_fifo_to_client_rxbuf() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6ada5115af1ff1843eeba9bce8f2979967d8109a;p=linux-beck.git spi: remove unused variable in tegra_slink_read_rx_fifo_to_client_rxbuf() The variable bits_per_word is initialized but never used otherwise, so remove the unused variable. Signed-off-by: Wei Yongjun Acked-By: Laxman Dewangan Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index a829563f4713..17224f0f4d56 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c @@ -375,9 +375,6 @@ static unsigned int tegra_slink_read_rx_fifo_to_client_rxbuf( tspi->cur_rx_pos += tspi->curr_dma_words * tspi->bytes_per_word; read_words += tspi->curr_dma_words; } else { - unsigned int bits_per_word; - - bits_per_word = t->bits_per_word; for (count = 0; count < rx_full_count; count++) { x = tegra_slink_readl(tspi, SLINK_RX_FIFO); for (i = 0; (i < tspi->bytes_per_word); i++)