Skip to content

Commit

Permalink
sfc: Use existing local variables instead of repeated indirect lookups
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
  • Loading branch information
Ben Hutchings committed Jan 27, 2012
1 parent 73ba7b6 commit 86ee530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ static int efx_probe_eventq(struct efx_channel *channel)
struct efx_nic *efx = channel->efx;
unsigned long entries;

netif_dbg(channel->efx, probe, channel->efx->net_dev,
netif_dbg(efx, probe, efx->net_dev,
"chan %d create event queue\n", channel->channel);

/* Build an event queue with room for one event per tx and rx buffer,
Expand Down Expand Up @@ -1971,7 +1971,7 @@ static int efx_register_netdev(struct efx_nic *efx)
}

/* Always start with carrier off; PHY events will detect the link */
netif_carrier_off(efx->net_dev);
netif_carrier_off(net_dev);

rtnl_unlock();

Expand Down

0 comments on commit 86ee530

Please sign in to comment.