sfc: Use existing local variables instead of repeated indirect lookups
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 9 Jan 2012 19:51:22 +0000 (19:51 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 27 Jan 2012 00:10:56 +0000 (00:10 +0000)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/efx.c

index 4f412fe22e8cb62604de0fbdf4b59e5725629a84..c8e1c8a93edc4c4408b329eb8aeb064decbd02c3 100644 (file)
@@ -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();