Commit 07dff2ee authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji Committed by David S. Miller

[IPV6]: typo, unrequired #undef and bad operator precedence.

- no need to #undef CONFIG_IPV6_SUBTREE
- use parentheses around "&" and "|".
- fib_repair_tree() is typo.
parent 361a7680
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
#include <net/ip6_route.h> #include <net/ip6_route.h>
#define RT6_DEBUG 2 #define RT6_DEBUG 2
#undef CONFIG_IPV6_SUBTREES
#if RT6_DEBUG >= 3 #if RT6_DEBUG >= 3
#define RT6_TRACE(x...) printk(KERN_DEBUG x) #define RT6_TRACE(x...) printk(KERN_DEBUG x)
...@@ -594,8 +593,8 @@ int fib6_add(struct fib6_node *root, struct rt6_info *rt, struct nlmsghdr *nlh, ...@@ -594,8 +593,8 @@ int fib6_add(struct fib6_node *root, struct rt6_info *rt, struct nlmsghdr *nlh,
is orphan. If it is, shoot it. is orphan. If it is, shoot it.
*/ */
st_failure: st_failure:
if (fn && !(fn->fn_flags&RTN_RTINFO|RTN_ROOT)) if (fn && !(fn->fn_flags & (RTN_RTINFO|RTN_ROOT)))
fib_repair_tree(fn); fib6_repair_tree(fn);
dst_free(&rt->u.dst); dst_free(&rt->u.dst);
return err; return err;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment