net: bridge: fix br_stp_enable_bridge comment
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 21 Jul 2016 16:42:10 +0000 (12:42 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2016 17:30:03 +0000 (10:30 -0700)
br_stp_enable_bridge() does take the br->lock spinlock. Fix its wrongly
pasted comment and use the same as br_stp_disable_bridge().

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_stp_if.c

index 984d462630072a8a013a3ba041304564e1bd83f6..341caa0ca63a6f061b548909f66fa5fcea749215 100644 (file)
@@ -55,7 +55,7 @@ void br_init_port(struct net_bridge_port *p)
                netdev_err(p->dev, "failed to set HW ageing time\n");
 }
 
-/* called under bridge lock */
+/* NO locks held */
 void br_stp_enable_bridge(struct net_bridge *br)
 {
        struct net_bridge_port *p;