Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Balaji G and committed by
David S. Miller
1459a3cc eec00954

+1 -1
+1 -1
net/bridge/br_stp_if.c
··· 213 213 214 214 /* user has chosen a value so keep it */ 215 215 if (br->flags & BR_SET_MAC_ADDR) 216 - return; 216 + return false; 217 217 218 218 list_for_each_entry(p, &br->port_list, list) { 219 219 if (addr == br_mac_zero ||