Re: [PATCH v2 net-next] liquidio: remove set but not used variable 'is25G'
From: David Miller
Date: Mon Aug 13 2018 - 12:48:45 EST
From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Mon, 13 Aug 2018 17:29:36 +0800
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/cavium/liquidio/lio_ethtool.c: In function 'lio_set_link_ksettings':
> drivers/net/ethernet/cavium/liquidio/lio_ethtool.c:392:6: warning:
> variable 'is25G' set but not used [-Wunused-but-set-variable]
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
> ---
> v2: remove unnecessary braces as Shahed suggested
Applied, thank you.