Commit 3bfb790c authored by Brian Haley's avatar Brian Haley Committed by Hideaki Yoshifuji

[IPV6] improve ipv6_ifa_notify() readability.

parent 80f968c0
......@@ -3017,10 +3017,8 @@ static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp)
static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp)
{
read_lock_bh(&addrconf_lock);
if (ifp->idev->dead)
goto out;
__ipv6_ifa_notify(event, ifp);
out:
if (likely(ifp->idev->dead == 0))
__ipv6_ifa_notify(event, ifp);
read_unlock_bh(&addrconf_lock);
}
......
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