Skip to content

Commit

Permalink
hv_netvsc: remove redundant assignment in netvsc_recv_callback()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vitaly Kuznetsov authored and David S. Miller committed Jun 6, 2016
1 parent 3075921 commit 4baa994
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/hyperv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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? */
Expand Down

0 comments on commit 4baa994

Please sign in to comment.