projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3075921
)
hv_netvsc: remove redundant assignment in netvsc_recv_callback()
author
Vitaly Kuznetsov
<vkuznets@redhat.com>
Fri, 3 Jun 2016 15:50:58 +0000
(17:50 +0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 6 Jun 2016 03:16:35 +0000
(23:16 -0400)
net_device_ctx is assigned in the very beginning of the function and 'net'
pointer doesn't change.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/hyperv/netvsc_drv.c
b/drivers/net/hyperv/netvsc_drv.c
index 5ac1267b393ffd09bd8f6b9b21cb7c14197a7212..58cb5fedb41f7804dea6072a2e93e0231e5693c5 100644
(file)
--- a/
drivers/net/hyperv/netvsc_drv.c
+++ b/
drivers/net/hyperv/netvsc_drv.c
@@
-701,7
+701,6
@@
int netvsc_recv_callback(struct hv_device *device_obj,
}
vf_injection_done:
- net_device_ctx = netdev_priv(net);
rx_stats = this_cpu_ptr(net_device_ctx->rx_stats);
/* Allocate a skb - TODO direct I/O to pages? */