Re: [PATCH] [net-next] sfc: avoid an unused-variable warning

2020-05-28 Thread Edward Cree
On 28/05/2020 20:49, David Miller wrote: > From: Arnd Bergmann > Date: Wed, 27 May 2020 15:41:06 +0200 > >> 'nic_data' is no longer used outside of the #ifdef block >> in efx_ef10_set_mac_address: >> >> drivers/net/ethernet/sfc/ef10.c:3231:28: error: unused variable 'nic_data' >> [-Werror,-Wunuse

Re: [PATCH] [net-next] sfc: avoid an unused-variable warning

2020-05-28 Thread David Miller
From: Arnd Bergmann Date: Wed, 27 May 2020 15:41:06 +0200 > 'nic_data' is no longer used outside of the #ifdef block > in efx_ef10_set_mac_address: > > drivers/net/ethernet/sfc/ef10.c:3231:28: error: unused variable 'nic_data' > [-Werror,-Wunused-variable] > struct efx_ef10_nic_data *ni

[PATCH] [net-next] sfc: avoid an unused-variable warning

2020-05-27 Thread Arnd Bergmann
'nic_data' is no longer used outside of the #ifdef block in efx_ef10_set_mac_address: drivers/net/ethernet/sfc/ef10.c:3231:28: error: unused variable 'nic_data' [-Werror,-Wunused-variable] struct efx_ef10_nic_data *nic_data = efx->nic_data; Move the variable into a local scope. Fixes: d