]> git.karo-electronics.de Git - linux-beck.git/commitdiff
neigh: directly goto out after setting nud_state to NUD_FAILED
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Thu, 27 Feb 2014 09:03:03 +0000 (17:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2014 21:40:38 +0000 (16:40 -0500)
Because those following if conditions will not be matched.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c

index 36d3f8c1a2dd85f49aad107cf6ea8aec97ee3c0c..fbde4e3ce802a0f2e52f237acae865fc6ff5774a 100644 (file)
@@ -945,6 +945,7 @@ static void neigh_timer_handler(unsigned long arg)
                neigh->nud_state = NUD_FAILED;
                notify = 1;
                neigh_invalidate(neigh);
+               goto out;
        }
 
        if (neigh->nud_state & NUD_IN_TIMER) {