Skip to content

Commit

Permalink
e1000e: cleanup e1000_set_phys_id
Browse files Browse the repository at this point in the history
Use the existing hw pointer.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
Bruce Allan authored and Jeff Kirsher committed Feb 7, 2012
1 parent 66092f5 commit f23efdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/intel/e1000e/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f23efdf

Please sign in to comment.