Skip to content

Commit

Permalink
bridge: Fix compilation warning in function br_stp_recalculate_bridge…
Browse files Browse the repository at this point in the history
…_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>
  • Loading branch information
Balaji G authored and David S. Miller committed Mar 30, 2011
1 parent eec0095 commit 1459a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bridge/br_stp_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit 1459a3c

Please sign in to comment.