Skip to content

Commit

Permalink
igbvf: remove unneeded cast
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 19, 2012
1 parent 6e86132 commit b2f0f6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/intel/igbvf/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit b2f0f6b

Please sign in to comment.