OSDN Git Service

netvsc: don't overload variable in same function
authorstephen hemminger <stephen@networkplumber.org>
Mon, 27 Feb 2017 18:26:47 +0000 (10:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Mar 2017 01:13:13 +0000 (17:13 -0800)
commit50698d80f8bb1db989b7b9fa433f588fade5e382
treefe05c4b0b0ef2a2d7392a8eca3fa48193b1969d1
parent1a4691b204e75a853ec74947bed0dd6966558d29
netvsc: don't overload variable in same function

There are two variables named packet in the same function. One is the
metadata descriptor from host (vmpacket_descriptor) and the other is
the control block in the skb used to hold metadata from send.
Change name to avoid possible confusion and bugs.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c