e1000e: cleanup e1000_set_phys_id
authorBruce Allan <bruce.w.allan@intel.com>
Tue, 31 Jan 2012 06:37:38 +0000 (06:37 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 7 Feb 2012 12:13:17 +0000 (04:13 -0800)
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>
drivers/net/ethernet/intel/e1000e/ethtool.c

index f43af463ddc66dd51c815b7f3a036591fc0515b6..fd2ba3818d3c2d9c7e135e0b16ddc14d51356191 100644 (file)
@@ -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;