Commit 1459a3cc authored by Balaji G's avatar Balaji G Committed by David S. Miller

bridge: Fix compilation warning in function br_stp_recalculate_bridge_id()

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: default avatarG.Balaji <balajig81@gmail.com>
Acked-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eec00954
...@@ -213,7 +213,7 @@ bool br_stp_recalculate_bridge_id(struct net_bridge *br) ...@@ -213,7 +213,7 @@ bool br_stp_recalculate_bridge_id(struct net_bridge *br)
/* user has chosen a value so keep it */ /* user has chosen a value so keep it */
if (br->flags & BR_SET_MAC_ADDR) if (br->flags & BR_SET_MAC_ADDR)
return; return false;
list_for_each_entry(p, &br->port_list, list) { list_for_each_entry(p, &br->port_list, list) {
if (addr == br_mac_zero || if (addr == br_mac_zero ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment