summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-01-09 19:51:22 +0000
committerBen Hutchings <bhutchings@solarflare.com>2012-01-27 00:10:56 +0000
commit86ee53020abe4eb9c85e612129e3848ee98302fd (patch)
treef7375f4cd239b065afc1dd66018ae9fcc7fb92f5 /drivers/net/ethernet
parent73ba7b68e952d98b0885e35402b204a7a675f4a9 (diff)
downloadtalos-obmc-linux-86ee53020abe4eb9c85e612129e3848ee98302fd.tar.gz
talos-obmc-linux-86ee53020abe4eb9c85e612129e3848ee98302fd.zip
sfc: Use existing local variables instead of repeated indirect lookups
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/sfc/efx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c
index 4f412fe22e8c..c8e1c8a93edc 100644
--- a/drivers/net/ethernet/sfc/efx.c
+++ b/drivers/net/ethernet/sfc/efx.c
@@ -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,
@@ -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();
OpenPOWER on IntegriCloud