]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
igbvf: remove unneeded cast
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 18 Jan 2012 22:13:28 +0000 (22:13 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 13:21:48 +0000 (21:21 +0800)
The cast and comment are unnecessary in the current upstream kernel.

(cherry picked from commit b2f0f6bb874df645766930e0f023a208d93c12cd)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/igbvf/ethtool.c

index 2c25858cc0ff8f26b8000333caf832662edf5fff..e3a1f034bce4170a262f6b6f64ae067f2346a992 100644 (file)
@@ -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);
 }