Re: [PATCH net-next] net: thunderx: remove set but not used variable 'tail'

From: David Miller
Date: Tue Mar 24 2020 - 00:54:25 EST


From: Zheng Zengkai <zhengzengkai@xxxxxxxxxx>
Date: Mon, 23 Mar 2020 14:51:16 +0800

> From: Zheng zengkai <zhengzengkai@xxxxxxxxxx>
>
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/cavium/thunder/nicvf_queues.c: In function nicvf_sq_free_used_descs:
> drivers/net/ethernet/cavium/thunder/nicvf_queues.c:1182:12: warning:
> variable tail set but not used [-Wunused-but-set-variable]
>
> It's not used since commit 4863dea3fab01("net: Adding support for Cavium ThunderX network controller"),
> so remove it.
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Zheng zengkai <zhengzengkai@xxxxxxxxxx>

Applied, thank you.