Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2f0f6bb authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

igbvf: remove unneeded cast



The cast and comment are unnecessary in the current upstream kernel.

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Tested-by: default avatarGarrett, RobertX E <robertx.e.garrett@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6e861326
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);
}