Skip to content

Commit

Permalink
neigh: directly goto out after setting nud_state to NUD_FAILED
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Duan Jiong authored and David S. Miller committed Feb 27, 2014
1 parent 8e1f40e commit 5e2c21d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/core/neighbour.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5e2c21d

Please sign in to comment.