aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-01-09 14:51:22 -0500
committerBen Hutchings <bhutchings@solarflare.com>2012-01-26 19:10:56 -0500
commit86ee53020abe4eb9c85e612129e3848ee98302fd (patch)
treef7375f4cd239b065afc1dd66018ae9fcc7fb92f5 /drivers/net
parent73ba7b68e952d98b0885e35402b204a7a675f4a9 (diff)
sfc: Use existing local variables instead of repeated indirect lookups
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net')
-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)
364 struct efx_nic *efx = channel->efx; 364 struct efx_nic *efx = channel->efx;
365 unsigned long entries; 365 unsigned long entries;
366 366
367 netif_dbg(channel->efx, probe, channel->efx->net_dev, 367 netif_dbg(efx, probe, efx->net_dev,
368 "chan %d create event queue\n", channel->channel); 368 "chan %d create event queue\n", channel->channel);
369 369
370 /* Build an event queue with room for one event per tx and rx buffer, 370 /* 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)
1971 } 1971 }
1972 1972
1973 /* Always start with carrier off; PHY events will detect the link */ 1973 /* Always start with carrier off; PHY events will detect the link */
1974 netif_carrier_off(efx->net_dev); 1974 netif_carrier_off(net_dev);
1975 1975
1976 rtnl_unlock(); 1976 rtnl_unlock();
1977 1977