Re: [PATCH net-next] cxgb4: remove set but not used variables 'multitrc, speed'

From: David Miller
Date: Sat Nov 24 2018 - 20:37:44 EST


From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Sat, 24 Nov 2018 18:36:21 +0800

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:5883:6:
> warning: variable 'multitrc' set but not used [-Wunused-but-set-variable]
>
> drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:8585:32:
> warning: variable 'speed' set but not used [-Wunused-but-set-variable]
>
> 'multitrc' never used since introduction in
> commit 8e3d04fd7d70 ("cxgb4: Add MPS tracing support")
>
> 'speed' never used since introduction in
> commit c3168cabe1af ("cxgb4/cxgbvf: Handle 32-bit fw port capabilities")
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied, thanks.