summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/netvsc.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-12-13 01:48:37 +0100
committerDavid S. Miller <davem@davemloft.net>2017-12-13 21:57:38 +0100
commit79cf1bae384cfc51b0b0773b3591794302af6ebd (patch)
treedad3ccb989e1a023cdc69aefe6acb366ba13dbaa /drivers/net/hyperv/netvsc.c
parenthv_netvsc: track memory allocation failures in ethtool stats (diff)
downloadlinux-79cf1bae384cfc51b0b0773b3591794302af6ebd.tar.xz
linux-79cf1bae384cfc51b0b0773b3591794302af6ebd.zip
hv_netvsc: simplify function args in receive status path
The caller (netvsc_receive) already has the net device pointer, and should just pass that to functions rather than the hyperv device. This eliminates several impossible error paths in the process. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/netvsc.c')
-rw-r--r--drivers/net/hyperv/netvsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c
index 53a366f7526b..d1a740add1bc 100644
--- a/drivers/net/hyperv/netvsc.c
+++ b/drivers/net/hyperv/netvsc.c
@@ -1082,7 +1082,7 @@ static int netvsc_receive(struct net_device *ndev,
u32 buflen = vmxferpage_packet->ranges[i].byte_count;
/* Pass it to the upper layer */
- status = rndis_filter_receive(ndev, net_device, device,
+ status = rndis_filter_receive(ndev, net_device,
channel, data, buflen);
}