]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ed7f60284912f27d36857111ddfd3a681af9514
tree12749e2d6afd82ec9c1b40aa08d012a5d4709cc6
parentac1e141a86530bda70e81cf3adb9ce99fcf158d6
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