]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi: remove unused variable in tegra_slink_read_rx_fifo_to_client_rxbuf()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 13 Mar 2013 13:29:12 +0000 (21:29 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 1 Apr 2013 13:28:11 +0000 (14:28 +0100)
The variable bits_per_word is initialized but never used
otherwise, so remove the unused variable.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-By: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-tegra20-slink.c

index a829563f471380dfe04d530f8ec6155bff19c4a7..17224f0f4d56178c96da18cf3895ac7f8fe4aea4 100644 (file)
@@ -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++)