From: Stephen Hemminger Date: Wed, 18 Jan 2012 22:13:28 +0000 (+0000) Subject: igbvf: remove unneeded cast X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~231 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e76b6eddc3e667e937eba344e81152e7025e2834;p=users%2Fjedix%2Flinux-maple.git igbvf: remove unneeded cast The cast and comment are unnecessary in the current upstream kernel. (cherry picked from commit b2f0f6bb874df645766930e0f023a208d93c12cd) Signed-off-by: Stephen Hemminger Tested-by: Garrett, RobertX E Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller Signed-off-by: Joe Jin --- diff --git a/drivers/net/igbvf/ethtool.c b/drivers/net/igbvf/ethtool.c index 2c25858cc0ff..e3a1f034bce4 100644 --- a/drivers/net/igbvf/ethtool.c +++ b/drivers/net/igbvf/ethtool.c @@ -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); }