Re: [PATCH net-next] atl1: remove set but not used variable 'advertising'

From: David Miller
Date: Thu Sep 20 2018 - 02:10:34 EST


From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Thu, 20 Sep 2018 02:41:30 +0000

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/atheros/atlx/atl1.c: In function 'atl1_set_link_ksettings':
> drivers/net/ethernet/atheros/atlx/atl1.c:3280:6: warning:
> variable 'advertising' set but not used [-Wunused-but-set-variable]
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied.