Re: [PATCH net-next] net: neterion: vxge: remove set but not used variables 'max_frags' and 'txdl_priv'

From: David Miller
Date: Wed Nov 28 2018 - 14:10:18 EST


From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Wed, 28 Nov 2018 20:24:41 +0800

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/neterion/vxge/vxge-traffic.c:1698:35:
> warning: variable 'txdl_priv' set but not used [-Wunused-but-set-variable]
> drivers/net/ethernet/neterion/vxge/vxge-traffic.c:1699:6:
> warning: variable 'max_frags' set but not used [-Wunused-but-set-variable]
>
> It never used since introduction in
> commit 113241321dcd ("Neterion: New driver: Traffic & alarm handler")
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied.