From: K. Y. Srinivasan Date: Fri, 13 May 2011 02:34:58 +0000 (-0700) Subject: Staging: hv: netvsc_drv: Directly invoke the function rndis_filter_receive() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ac6f78590104f01036ae7f1ecc062411a251f756;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: hv: netvsc_drv: Directly invoke the function rndis_filter_receive() Directly invoke the function rndis_filter_receive(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Abhishek Kane Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index 5ca35ad50ee5..85e7ea6858e6 100644 --- a/drivers/staging/hv/netvsc.c +++ b/drivers/staging/hv/netvsc.c @@ -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); @@ -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);