From: Ben Hutchings Date: Mon, 9 Jan 2012 19:51:22 +0000 (+0000) Subject: sfc: Use existing local variables instead of repeated indirect lookups X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86ee53020abe4eb9c85e612129e3848ee98302fd;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sfc: Use existing local variables instead of repeated indirect lookups Signed-off-by: Ben Hutchings --- 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();