From: Bruce Allan Date: Tue, 31 Jan 2012 06:37:38 +0000 (+0000) Subject: e1000e: cleanup e1000_set_phys_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f23efdff77bbc1207255ccebe04771970604bbd9;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git e1000e: cleanup e1000_set_phys_id Use the existing hw pointer. Signed-off-by: Bruce Allan Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/e1000e/ethtool.c b/drivers/net/ethernet/intel/e1000e/ethtool.c index f43af463ddc6..fd2ba3818d3c 100644 --- a/drivers/net/ethernet/intel/e1000e/ethtool.c +++ b/drivers/net/ethernet/intel/e1000e/ethtool.c @@ -1856,11 +1856,11 @@ static int e1000_set_phys_id(struct net_device *netdev, break; case ETHTOOL_ID_ON: - adapter->hw.mac.ops.led_on(&adapter->hw); + hw->mac.ops.led_on(hw); break; case ETHTOOL_ID_OFF: - adapter->hw.mac.ops.led_off(&adapter->hw); + hw->mac.ops.led_off(hw); break; } return 0;