projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e43f11
)
net: in the first call to neigh_seq_next, call neigh_get_first, not neigh_get_idx.
author
Chris Larson
<
[email protected]
>
Sun, 3 Aug 2008 08:02:41 +0000
(
01:02
-0700)
committer
David S. Miller
<
[email protected]
>
Sun, 3 Aug 2008 08:02:41 +0000
(
01:02
-0700)
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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/core/neighbour.c
patch
|
blob
|
history
diff --git
a/net/core/neighbour.c
b/net/core/neighbour.c
index f62c8af85d389eed79b8f8fb4c86d24d476707b0..a57de755c8cc62bb839d4f28f0c91e06a83532a6 100644
(file)
--- a/
net/core/neighbour.c
+++ b/
net/core/neighbour.c
@@
-2385,7
+2385,7
@@
void *neigh_seq_next(struct seq_file *seq, void *v, loff_t *pos)
void *rc;
if (v == SEQ_START_TOKEN) {
- rc = neigh_get_
idx(seq, pos
);
+ rc = neigh_get_
first(seq
);
goto out;
}