]> err.no Git - linux-2.6/commit
net: in the first call to neigh_seq_next, call neigh_get_first, not neigh_get_idx.
authorChris Larson <clarson@mvista.com>
Sun, 3 Aug 2008 08:02:41 +0000 (01:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Aug 2008 08:02:41 +0000 (01:02 -0700)
commitbff69732c9947f821a64a8477f7dcaa9c30e6a69
tree58c09d4d29ff15e39c87d9acedf3d8df42a24bb0
parent7e43f1128d4c4bd91786ca6abff45a91e88f9776
net: in the first call to neigh_seq_next, call neigh_get_first, not neigh_get_idx.

neigh_seq_next won't be called both with *pos > 0 && v ==
SEQ_START_TOKEN, so there's no point calling neigh_get_idx when we're
on the start token, just call neigh_get_first directly.

Signed-off-by: Chris Larson <clarson@mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c