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

ipv6: fix checkpatch errors of brace and trailing statements

ERROR: open brace '{' following enum go on the same line
ERROR: open brace '{' following struct go on the same line
ERROR: trailing statements should be on next line

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Wang Yufen and committed by
David S. Miller
49e253e3 8db46f1d

+10 -8
+10 -8
net/ipv6/ip6_fib.c
··· 46 46 47 47 static struct kmem_cache * fib6_node_kmem __read_mostly; 48 48 49 - enum fib_walk_state_t 50 - { 49 + enum fib_walk_state_t { 51 50 #ifdef CONFIG_IPV6_SUBTREES 52 51 FWS_S, 53 52 #endif ··· 56 57 FWS_U 57 58 }; 58 59 59 - struct fib6_cleaner_t 60 - { 60 + struct fib6_cleaner_t { 61 61 struct fib6_walker_t w; 62 62 struct net *net; 63 63 int (*func)(struct rt6_info *, void *arg); ··· 1188 1190 1189 1191 children = 0; 1190 1192 child = NULL; 1191 - if (fn->right) child = fn->right, children |= 1; 1192 - if (fn->left) child = fn->left, children |= 2; 1193 + if (fn->right) 1194 + child = fn->right, children |= 1; 1195 + if (fn->left) 1196 + child = fn->left, children |= 2; 1193 1197 1194 1198 if (children == 3 || FIB6_SUBTREE(fn) 1195 1199 #ifdef CONFIG_IPV6_SUBTREES ··· 1219 1219 } else { 1220 1220 WARN_ON(fn->fn_flags & RTN_ROOT); 1221 1221 #endif 1222 - if (pn->right == fn) pn->right = child; 1223 - else if (pn->left == fn) pn->left = child; 1222 + if (pn->right == fn) 1223 + pn->right = child; 1224 + else if (pn->left == fn) 1225 + pn->left = child; 1224 1226 #if RT6_DEBUG >= 2 1225 1227 else 1226 1228 WARN_ON(1);