summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_fib.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2020-08-25 06:56:24 +0200
committerDavid S. Miller <davem@davemloft.net>2020-08-25 16:54:19 +0200
commitdee847793fac2fcb05add1ab46cb6e5f77340fa9 (patch)
tree7ef91140a4548f26678caf55daebd4bdf58b48ba /net/ipv6/ip6_fib.c
parentwan: sbni: Avoid comma separated statements (diff)
downloadlinux-dee847793fac2fcb05add1ab46cb6e5f77340fa9.tar.xz
linux-dee847793fac2fcb05add1ab46cb6e5f77340fa9.zip
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>
Diffstat (limited to 'net/ipv6/ip6_fib.c')
-rw-r--r--net/ipv6/ip6_fib.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c
index 25a90f3f705c..44d68ed70f24 100644
--- a/net/ipv6/ip6_fib.c
+++ b/net/ipv6/ip6_fib.c
@@ -1812,10 +1812,14 @@ static struct fib6_node *fib6_repair_tree(struct net *net,
children = 0;
child = NULL;
- if (fn_r)
- child = fn_r, children |= 1;
- if (fn_l)
- child = fn_l, children |= 2;
+ if (fn_r) {
+ child = fn_r;
+ children |= 1;
+ }
+ if (fn_l) {
+ child = fn_l;
+ children |= 2;
+ }
if (children == 3 || FIB6_SUBTREE(fn)
#ifdef CONFIG_IPV6_SUBTREES