提交 f23efdff 编写于 作者: B Bruce Allan 提交者: Jeff Kirsher

e1000e: cleanup e1000_set_phys_id

Use the existing hw pointer.
Signed-off-by: NBruce Allan <bruce.w.allan@intel.com>
Tested-by: NAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 66092f59
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册