summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_stp_if.c
diff options
context:
space:
mode:
authorBalaji G2011-03-29 08:20:04 +0200
committerDavid S. Miller2011-03-30 08:37:23 +0200
commit1459a3cc51d90d78027c7b5c1790e5d22751c8eb (patch)
treec8c1f1a12c0001e55ed27f904dcef490040bd4ab /net/bridge/br_stp_if.c
parentnet: Fix warnings caused by MAX_SKB_FRAGS change. (diff)
downloadkernel-qcow2-linux-1459a3cc51d90d78027c7b5c1790e5d22751c8eb.tar.gz
kernel-qcow2-linux-1459a3cc51d90d78027c7b5c1790e5d22751c8eb.tar.xz
kernel-qcow2-linux-1459a3cc51d90d78027c7b5c1790e5d22751c8eb.zip
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: G.Balaji <balajig81@gmail.com> Acked-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_stp_if.c')
-rw-r--r--net/bridge/br_stp_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_stp_if.c b/net/bridge/br_stp_if.c
index 5593f5aec942..9b61d09de9b9 100644
--- a/net/bridge/br_stp_if.c
+++ b/net/bridge/br_stp_if.c
@@ -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 ||