mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 21:54:11 +08:00
igbvf: remove unneeded cast
The cast and comment are unnecessary in the current upstream kernel. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Tested-by: Garrett, RobertX E <robertx.e.garrett@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6e861326b1
commit
b2f0f6bb87
@ -468,6 +468,5 @@ static const struct ethtool_ops igbvf_ethtool_ops = {
|
||||
|
||||
void igbvf_set_ethtool_ops(struct net_device *netdev)
|
||||
{
|
||||
/* have to "undeclare" const on this struct to remove warnings */
|
||||
SET_ETHTOOL_OPS(netdev, (struct ethtool_ops *)&igbvf_ethtool_ops);
|
||||
SET_ETHTOOL_OPS(netdev, &igbvf_ethtool_ops);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user