diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-02-18 23:50:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-18 23:50:42 -0500 |
commit | 2df96af03d97e98cbea9f9cb71fc56ea5fc544b2 (patch) | |
tree | 58b1bb60fc0c6c4efe1b8479782652feefc149c2 | |
parent | 9937ded8e44de8865cba1509d24eea9d350cebf0 (diff) |
[IPV6]: Use BUG_ON instead of if + BUG in fib6_del_route.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv6/ip6_fib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index f93407cf6515..bab72b6f1444 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c | |||
@@ -1151,7 +1151,7 @@ static void fib6_del_route(struct fib6_node *fn, struct rt6_info **rtp, | |||
1151 | fn = fn->parent; | 1151 | fn = fn->parent; |
1152 | } | 1152 | } |
1153 | /* No more references are possible at this point. */ | 1153 | /* No more references are possible at this point. */ |
1154 | if (atomic_read(&rt->rt6i_ref) != 1) BUG(); | 1154 | BUG_ON(atomic_read(&rt->rt6i_ref) != 1); |
1155 | } | 1155 | } |
1156 | 1156 | ||
1157 | inet6_rt_notify(RTM_DELROUTE, rt, info); | 1157 | inet6_rt_notify(RTM_DELROUTE, rt, info); |