Re: [PATCH -next] net: pasemi: remove set but not used variable 'cpyhdr'

From: David Miller
Date: Thu Apr 04 2019 - 20:37:05 EST


From: Yue Haibing <yuehaibing@xxxxxxxxxx>
Date: Wed, 3 Apr 2019 15:50:27 +0800

> From: YueHaibing <yuehaibing@xxxxxxxxxx>
>
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/pasemi/pasemi_mac.c: In function 'pasemi_mac_queue_csdesc':
> drivers/net/ethernet/pasemi/pasemi_mac.c:1358:29: warning: variable 'cpyhdr' set but not used [-Wunused-but-set-variable]
>
> It's never used since commit 8d636d8bc5ff ("pasemi_mac: jumbo
> frame support") and can be removed.
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied.