提交 b2f0f6bb 编写于 作者: S Stephen Hemminger 提交者: David S. Miller

igbvf: remove unneeded cast

The cast and comment are unnecessary in the current upstream kernel.
Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
Tested-by: NGarrett, RobertX E <robertx.e.garrett@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6e861326
...@@ -468,6 +468,5 @@ static const struct ethtool_ops igbvf_ethtool_ops = { ...@@ -468,6 +468,5 @@ static const struct ethtool_ops igbvf_ethtool_ops = {
void igbvf_set_ethtool_ops(struct net_device *netdev) void igbvf_set_ethtool_ops(struct net_device *netdev)
{ {
/* have to "undeclare" const on this struct to remove warnings */ SET_ETHTOOL_OPS(netdev, &igbvf_ethtool_ops);
SET_ETHTOOL_OPS(netdev, (struct ethtool_ops *)&igbvf_ethtool_ops);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册