Skip to content

Commit

Permalink
hv_netvsc: Clean up unused parameter from netvsc_get_rss_hash_opts()
Browse files Browse the repository at this point in the history
The parameter "nvdev" is not in use.

Signed-off-by: Haiyang Zhang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
haiyangz authored and davem330 committed Aug 22, 2017
1 parent fcba156 commit 4c0e2cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/hyperv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1228,8 +1228,7 @@ static void netvsc_get_strings(struct net_device *dev, u32 stringset, u8 *data)
}

static int
netvsc_get_rss_hash_opts(struct netvsc_device *nvdev,
struct ethtool_rxnfc *info)
netvsc_get_rss_hash_opts(struct ethtool_rxnfc *info)
{
info->data = RXH_IP_SRC | RXH_IP_DST;

Expand Down Expand Up @@ -1267,7 +1266,7 @@ netvsc_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *info,
return 0;

case ETHTOOL_GRXFH:
return netvsc_get_rss_hash_opts(nvdev, info);
return netvsc_get_rss_hash_opts(info);
}
return -EOPNOTSUPP;
}
Expand Down

0 comments on commit 4c0e2cb

Please sign in to comment.