Commit 23085756 authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov Committed by Tim Gardner

hv_netvsc: remove redundant assignment in netvsc_recv_callback()

BugLink: http://bugs.launchpad.net/bugs/1616677

net_device_ctx is assigned in the very beginning of the function and 'net'
pointer doesn't change.
Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
(cherry picked from commit 4baa994d)
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
Acked-by: default avatarKamal Mostafa <kamal@canonical.com>
parent 64cf6298
......@@ -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? */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment