bridge: Fix compilation warning in function br_stp_recalculate_bridge_id()
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- net/bridge/br_stp_if.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/bridge/br_stp_if.c +1 -1
@@ -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 ||
Signature · 1 line
1.7.4
Quoted 4 lines · On Tue, 29 Mar 2011 21:50:04 +0530 "G.Balaji" <[email protected]> wrote:
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-voidSigned-off-by G.Balaji <[email protected]>
(Forget to refresh quilt patch before sending).
From: Stephen Hemminger <[email protected]>
Date: Tue, 29 Mar 2011 11:10:38 -0700
Quoted 11 lines
Quoted 4 lines · On Tue, 29 Mar 2011 21:50:04 +0530 "G.Balaji" <[email protected]> wrote:
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-voidSigned-off-by G.Balaji <[email protected]>(Forget to refresh quilt patch before sending).
Applied.