From: Duan Jiong Date: Thu, 27 Feb 2014 09:03:03 +0000 (+0800) Subject: neigh: directly goto out after setting nud_state to NUD_FAILED X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=5e2c21dceb5d324b204fda1f28270bb3dbccedb3;p=deliverable%2Flinux.git neigh: directly goto out after setting nud_state to NUD_FAILED Because those following if conditions will not be matched. Signed-off-by: Duan Jiong Signed-off-by: David S. Miller --- diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 36d3f8c1a2dd..fbde4e3ce802 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -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) {