projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: atm: fix update of position index in lec_seq_next
[linux-2.6-microblaze.git]
/
net
/
atm
/
lec.c
diff --git
a/net/atm/lec.c
b/net/atm/lec.c
index
dbabb65
..
7226c78
100644
(file)
--- a/
net/atm/lec.c
+++ b/
net/atm/lec.c
@@
-954,9
+954,8
@@
static void *lec_seq_next(struct seq_file *seq, void *v, loff_t *pos)
{
struct lec_state *state = seq->private;
- v = lec_get_idx(state, 1);
- *pos += !!PTR_ERR(v);
- return v;
+ ++*pos;
+ return lec_get_idx(state, 1);
}
static int lec_seq_show(struct seq_file *seq, void *v)