vxlan: remove vxlan_group_used in vxlan_open
authorGao feng <gaofeng@cn.fujitsu.com>
Tue, 10 Dec 2013 08:37:32 +0000 (16:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2013 19:21:26 +0000 (14:21 -0500)
commit79d4a94fab0a9cc1b55db45a98277a68ff1febd8
tree64d527eae62f7d9e6fff5afc784da1942086cdd3
parent1a0ab7675d27542ab30f2fc6af8c3385cc7f708e
vxlan: remove vxlan_group_used in vxlan_open

In vxlan_open, vxlan_group_used always returns true,
because the state of the vxlan deivces which we want
to open has alreay been running. and it has already
in vxlan_list.

Since ip_mc_join_group takes care of the reference
of struct ip_mc_list. removing vxlan_group_used here
is safe.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c