diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-03-13 09:29:12 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-01 09:28:11 -0400 |
commit | 6ada5115af1ff1843eeba9bce8f2979967d8109a (patch) | |
tree | b778a813e1b49c32cbfa8cb3a7a8cc99ebd461dd /drivers/spi/spi-tegra20-slink.c | |
parent | 691ee4edd410dd6f19227642e01a93fb88620eff (diff) |
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 <yongjun_wei@trendmicro.com.cn>
Acked-By: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-tegra20-slink.c')
-rw-r--r-- | drivers/spi/spi-tegra20-slink.c | 3 |
1 files changed, 0 insertions, 3 deletions
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( | |||
375 | tspi->cur_rx_pos += tspi->curr_dma_words * tspi->bytes_per_word; | 375 | tspi->cur_rx_pos += tspi->curr_dma_words * tspi->bytes_per_word; |
376 | read_words += tspi->curr_dma_words; | 376 | read_words += tspi->curr_dma_words; |
377 | } else { | 377 | } else { |
378 | unsigned int bits_per_word; | ||
379 | |||
380 | bits_per_word = t->bits_per_word; | ||
381 | for (count = 0; count < rx_full_count; count++) { | 378 | for (count = 0; count < rx_full_count; count++) { |
382 | x = tegra_slink_readl(tspi, SLINK_RX_FIFO); | 379 | x = tegra_slink_readl(tspi, SLINK_RX_FIFO); |
383 | for (i = 0; (i < tspi->bytes_per_word); i++) | 380 | for (i = 0; (i < tspi->bytes_per_word); i++) |