summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sfc
diff options
context:
space:
mode:
authorEdward Cree <ecree@solarflare.com>2016-08-26 17:12:57 +0300
committerDavid S. Miller <davem@davemloft.net>2016-08-27 07:43:52 +0300
commitdf0562c386c778c802b981fc4015a636aa5db866 (patch)
tree31702d2ffde181bea3a646395658827350ed91d4 /drivers/net/ethernet/sfc
parent69b365c360243e18ec7c2577c14ff057c091cd77 (diff)
downloadlinux-df0562c386c778c802b981fc4015a636aa5db866.tar.xz
sfc: remove duplicate assignment
nic_data was already initialised to the right thing, no need to assign it again. Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc')
-rw-r--r--drivers/net/ethernet/sfc/ef10.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/ef10.c b/drivers/net/ethernet/sfc/ef10.c
index d039f29cd8d7..c4cd6b08acd1 100644
--- a/drivers/net/ethernet/sfc/ef10.c
+++ b/drivers/net/ethernet/sfc/ef10.c
@@ -1715,7 +1715,6 @@ static int efx_ef10_try_update_nic_stats_pf(struct efx_nic *efx)
efx_ef10_get_stat_mask(efx, mask);
dma_stats = efx->stats_buffer.addr;
- nic_data = efx->nic_data;
generation_end = dma_stats[MC_CMD_MAC_GENERATION_END];
if (generation_end == EFX_MC_STATS_GENERATION_INVALID)