aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm/lec.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2008-04-10 06:33:03 -0400
committerDavid S. Miller <davem@davemloft.net>2008-04-10 06:33:03 -0400
commit2e1e9848accba7e5f6a731bf0d0fc2c84f3ee748 (patch)
tree7e79d8938d7763f77c66b8448c358f5adc8ba14b /net/atm/lec.c
parent4dfc2817025965a2fc78a18c50f540736a6b5c24 (diff)
[ATM]: Use SEQ_START_TOKEN
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/lec.c')
-rw-r--r--net/atm/lec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c
index aa3785ebf6d1..9bd64bd706b9 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -1014,7 +1014,7 @@ static void *lec_tbl_walk(struct lec_state *state, struct hlist_head *tbl,
1014 1014
1015 if (!e) 1015 if (!e)
1016 e = tbl->first; 1016 e = tbl->first;
1017 if (e == (void *)1) { 1017 if (e == SEQ_START_TOKEN) {
1018 e = tbl->first; 1018 e = tbl->first;
1019 --*l; 1019 --*l;
1020 } 1020 }
@@ -1116,9 +1116,9 @@ static void *lec_seq_start(struct seq_file *seq, loff_t *pos)
1116 state->locked = NULL; 1116 state->locked = NULL;
1117 state->arp_table = 0; 1117 state->arp_table = 0;
1118 state->misc_table = 0; 1118 state->misc_table = 0;
1119 state->node = (void *)1; 1119 state->node = SEQ_START_TOKEN;
1120 1120
1121 return *pos ? lec_get_idx(state, *pos) : (void *)1; 1121 return *pos ? lec_get_idx(state, *pos) : SEQ_START_TOKEN;
1122} 1122}
1123 1123
1124static void lec_seq_stop(struct seq_file *seq, void *v) 1124static void lec_seq_stop(struct seq_file *seq, void *v)
@@ -1147,7 +1147,7 @@ static int lec_seq_show(struct seq_file *seq, void *v)
1147 " Status Flags " 1147 " Status Flags "
1148 "VPI/VCI Recv VPI/VCI\n"; 1148 "VPI/VCI Recv VPI/VCI\n";
1149 1149
1150 if (v == (void *)1) 1150 if (v == SEQ_START_TOKEN)
1151 seq_puts(seq, lec_banner); 1151 seq_puts(seq, lec_banner);
1152 else { 1152 else {
1153 struct lec_state *state = seq->private; 1153 struct lec_state *state = seq->private;