Skip to content

Commit

Permalink
ethtool: use "ops" name consistenty in ethtool_set_rxfh()
Browse files Browse the repository at this point in the history
"dev->ethtool_ops" and "ops" are the same, but we should use "ops"
everywhere to be consistent.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Feb 22, 2015
1 parent 29778be commit d340c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ static noinline_for_stack int ethtool_set_rxfh(struct net_device *dev,
if (ops->get_rxfh_indir_size)
dev_indir_size = ops->get_rxfh_indir_size(dev);
if (ops->get_rxfh_key_size)
dev_key_size = dev->ethtool_ops->get_rxfh_key_size(dev);
dev_key_size = ops->get_rxfh_key_size(dev);

if (copy_from_user(&rxfh, useraddr, sizeof(rxfh)))
return -EFAULT;
Expand Down

0 comments on commit d340c86

Please sign in to comment.