Re: [PATCH -next] ibmvnic: remove set but not used variable 'netdev'

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


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

> From: YueHaibing <yuehaibing@xxxxxxxxxx>
>
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/ibm/ibmvnic.c: In function '__ibmvnic_reset':
> drivers/net/ethernet/ibm/ibmvnic.c:1971:21: warning: variable 'netdev' set but not used [-Wunused-but-set-variable]
>
> It's never used since introduction in
> commit ed651a10875f ("ibmvnic: Updated reset handling")
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied.