vlan: cleanup multiple unregistrations
authorPatrick McHardy <kaber@trash.net>
Fri, 30 Oct 2009 06:43:00 +0000 (23:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Oct 2009 06:43:00 +0000 (23:43 -0700)
commit29906f6a427d2004a515ebbcdc7b28bae8f6c19c
tree12749e2d6afd82ec9c1b40aa08d012a5d4709cc6
parentf0816ce39d8de7646301aac52cc7351a2424d97f
vlan: cleanup multiple unregistrations

The temporary copy of the VLAN group is not neccessary since the lower device
is already in the process of being unregistered, if it was neccessary the
memset of the global group would introduce a race condition.

With this removed, the changes to the original code are only a few lines, so
remove the new function and move the code back into vlan_device_event().

Signed-off-by: Patrick McHardy <kaber@trash.net>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c