Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1413328
| From | Vitaly Kuznetsov <vkuznets@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH net-next v2 1/5] hv_netvsc: remove redundant assignment in netvsc_recv_callback() |
| Date | 2016-06-03 18:00 +0200 |
| Message-ID | <rFZFU-5aq-37@gated-at.bofh.it> (permalink) |
| References | <rFZFU-5aq-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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> --- drivers/net/hyperv/netvsc_drv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 6a69b5c..db8fedf 100644 --- 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? */ -- 2.5.5
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH net-next v2 0/5] hv_netvsc: cleanup after untangling the pointer mess Vitaly Kuznetsov <vkuznets@redhat.com> - 2016-06-03 18:00 +0200 [PATCH net-next v2 1/5] hv_netvsc: remove redundant assignment in netvsc_recv_callback() Vitaly Kuznetsov <vkuznets@redhat.com> - 2016-06-03 18:00 +0200 Re: [PATCH net-next v2 0/5] hv_netvsc: cleanup after untangling the pointer mess David Miller <davem@davemloft.net> - 2016-06-06 05:20 +0200
csiph-web