net: dsa: return after vlan prepare phase
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Wed, 8 Nov 2017 15:50:10 +0000 (10:50 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 06:45:09 +0000 (15:45 +0900)
commit2118df93b5e1742931da358c2b8804c46fd64490
tree164f16f86631b705edea08104baa9dd30bc60ae8
parentb0b38a1c6684b10dd0462bef4fef038917115012
net: dsa: return after vlan prepare phase

The current code does not return after successfully preparing the VLAN
addition on every ports member of a it. Fix this.

Fixes: 1ca4aa9cd4cc ("net: dsa: check VLAN capability of every switch")
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/switch.c