Skip to content

Commit

Permalink
[IPV6]: Use BUG_ON instead of if + BUG in fib6_del_route.
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Feb 19, 2008
1 parent 9937ded commit 2df96af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/ip6_fib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ static void fib6_del_route(struct fib6_node *fn, struct rt6_info **rtp,
fn = fn->parent;
}
/* No more references are possible at this point. */
if (atomic_read(&rt->rt6i_ref) != 1) BUG();
BUG_ON(atomic_read(&rt->rt6i_ref) != 1);
}

inet6_rt_notify(RTM_DELROUTE, rt, info);
Expand Down

0 comments on commit 2df96af

Please sign in to comment.