]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: avoid an unused-variable warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 27 May 2020 13:41:06 +0000 (15:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 19:49:06 +0000 (12:49 -0700)
commitffb1facc3f49bb4d64ccdfece8d022fff6762a62
tree279188dbc20d32937572784ff1b967e4e77e8f22
parent95cf946d7481287eacb54b8c77f9b6595729da4e
sfc: avoid an unused-variable warning

'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: 272f3b839227 ("sfc: move vport_id to struct efx_nic")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c