[PATCH -next] spi: remove unused variable in tegra_slink_read_rx_fifo_to_client_rxbuf()

Laxman Dewangan ldewangan at nvidia.com
Thu Mar 14 06:59:30 EST 2013


On Wednesday 13 March 2013 06:59 PM, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
>
> The variable bits_per_word is initialized but never used
> otherwise, so remove the unused variable.
>
> Signed-off-by: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
> ---
>   drivers/spi/spi-tegra20-slink.c | 3 ---
>   1 file changed, 3 deletions(-)
>
> diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c
> index a829563..17224f0 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;
>


Yes, it is not needed.
Acked-By: Laxman Dewangan <ldewangan at nvidia.com>

Thanks,
Laxman



More information about the devicetree-discuss mailing list