Skip to content

Commit

Permalink
Staging: hv: netvsc_drv: Directly invoke the function rndis_filter_re…
Browse files Browse the repository at this point in the history
…ceive()

Directly invoke the function rndis_filter_receive().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 17, 2011
1 parent a25e1db commit ac6f785
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,8 +820,6 @@ static void netvsc_receive(struct hv_device *device,
int i, j;
int count = 0, bytes_remain = 0;
unsigned long flags;
struct netvsc_driver *netvsc_drv =
drv_to_netvscdrv(device->device.driver);

LIST_HEAD(listHead);

Expand Down Expand Up @@ -983,7 +981,7 @@ static void netvsc_receive(struct hv_device *device,
}

/* Pass it to the upper layer */
netvsc_drv->recv_cb(device, netvsc_packet);
rndis_filter_receive(device, netvsc_packet);

netvsc_receive_completion(netvsc_packet->
completion.recv.recv_completion_ctx);
Expand Down

0 comments on commit ac6f785

Please sign in to comment.