[PATCH -next] ibmvnic: remove set but not used variable 'netdev'
David Miller
davem at davemloft.net
Fri Apr 5 11:37:11 AEDT 2019
From: Yue Haibing <yuehaibing at huawei.com>
Date: Wed, 3 Apr 2019 15:54:09 +0800
> From: YueHaibing <yuehaibing at huawei.com>
>
> 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 at huawei.com>
Applied.
More information about the Linuxppc-dev
mailing list