diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-12-13 03:48:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-13 23:57:39 +0300 |
commit | 0da6edbd3a379433814c738e932474057537107c (patch) | |
tree | 490209e29e99c77cdad63610df53c9fe932a656a /drivers/net/hyperv/netvsc.c | |
parent | 345ac08990b8365294f9756da806f357c239d758 (diff) | |
download | linux-0da6edbd3a379433814c738e932474057537107c.tar.xz |
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 <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/netvsc.c')
-rw-r--r-- | drivers/net/hyperv/netvsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c index d1a740add1bc..83fa55336c1b 100644 --- a/drivers/net/hyperv/netvsc.c +++ b/drivers/net/hyperv/netvsc.c @@ -73,7 +73,7 @@ static struct netvsc_device *alloc_net_device(void) init_waitqueue_head(&net_device->wait_drain); net_device->destroy = false; - atomic_set(&net_device->open_cnt, 0); + net_device->max_pkt = RNDIS_MAX_PKT_DEFAULT; net_device->pkt_align = RNDIS_PKT_ALIGN_DEFAULT; |