Skip to content

Commit dee8477

Browse files
JoePerchesdavem330
authored andcommitted
ipv6: fib6: Avoid comma separated statements
Use semicolons and braces. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ac937e1 commit dee8477

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎net/ipv6/ip6_fib.c‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,10 +1812,14 @@ static struct fib6_node *fib6_repair_tree(struct net *net,
18121812

18131813
children = 0;
18141814
child = NULL;
1815-
if (fn_r)
1816-
child = fn_r, children |= 1;
1817-
if (fn_l)
1818-
child = fn_l, children |= 2;
1815+
if (fn_r) {
1816+
child = fn_r;
1817+
children |= 1;
1818+
}
1819+
if (fn_l) {
1820+
child = fn_l;
1821+
children |= 2;
1822+
}
18191823

18201824
if (children == 3 || FIB6_SUBTREE(fn)
18211825
#ifdef CONFIG_IPV6_SUBTREES

0 commit comments

Comments
 (0)