bridge: Fix compilation warning in function br_stp_recalculate_bridge_id()
authorBalaji G <balajig81@gmail.com>
Tue, 29 Mar 2011 06:20:04 +0000 (06:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Mar 2011 06:37:23 +0000 (23:37 -0700)
net/bridge/br_stp_if.c: In function ‘br_stp_recalculate_bridge_id’:
net/bridge/br_stp_if.c:216:3: warning: ‘return’ with no value, in function returning non-void

Signed-off-by: G.Balaji <balajig81@gmail.com>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_stp_if.c

index 5593f5aec942eba5a8ef4767b976140d2fa28a51..9b61d09de9b938b01beca20a396c780ead2a596a 100644 (file)
@@ -213,7 +213,7 @@ bool br_stp_recalculate_bridge_id(struct net_bridge *br)
 
        /* user has chosen a value so keep it */
        if (br->flags & BR_SET_MAC_ADDR)
-               return;
+               return false;
 
        list_for_each_entry(p, &br->port_list, list) {
                if (addr == br_mac_zero ||