aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorStephen Hemminger <[email protected]>2017-12-13 00:48:39 +0000
committerDavid S. Miller <[email protected]>2017-12-13 20:57:39 +0000
commit0da6edbd3a379433814c738e932474057537107c (patch)
tree490209e29e99c77cdad63610df53c9fe932a656a /drivers/net/hyperv/hyperv_net.h
parenthv_netvsc: pass netvsc_device to receive callback (diff)
downloadkernel-0da6edbd3a379433814c738e932474057537107c.tar.gz
kernel-0da6edbd3a379433814c738e932474057537107c.zip
hv_netvsc: remove open_cnt reference count
There is only ever a single instance of network device object referencing the internal rndis object. Therefore the open_cnt atomic is not necessary. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r--drivers/net/hyperv/hyperv_net.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h
index b090d90114ca..b10c99751e3a 100644
--- a/drivers/net/hyperv/hyperv_net.h
+++ b/drivers/net/hyperv/hyperv_net.h
@@ -823,8 +823,6 @@ struct netvsc_device {
u32 max_pkt; /* max number of pkt in one send, e.g. 8 */
u32 pkt_align; /* alignment bytes, e.g. 8 */
- atomic_t open_cnt;
-
struct netvsc_channel chan_table[VRSS_CHANNEL_MAX];
struct rcu_head rcu;