aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm/lec.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2008-04-10 03:33:03 -0700
committerDavid S. Miller <davem@davemloft.net>2008-04-10 03:33:03 -0700
commit2e1e9848accba7e5f6a731bf0d0fc2c84f3ee748 (patch)
tree7e79d8938d7763f77c66b8448c358f5adc8ba14b /net/atm/lec.c
parent4dfc2817025965a2fc78a18c50f540736a6b5c24 (diff)
downloadkernel_samsung_crespo-2e1e9848accba7e5f6a731bf0d0fc2c84f3ee748.zip
kernel_samsung_crespo-2e1e9848accba7e5f6a731bf0d0fc2c84f3ee748.tar.gz
kernel_samsung_crespo-2e1e9848accba7e5f6a731bf0d0fc2c84f3ee748.tar.bz2
[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 aa3785e..9bd64bd 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,
if (!e)
e = tbl->first;
- if (e == (void *)1) {
+ if (e == SEQ_START_TOKEN) {
e = tbl->first;
--*l;
}
@@ -1116,9 +1116,9 @@ static void *lec_seq_start(struct seq_file *seq, loff_t *pos)
state->locked = NULL;
state->arp_table = 0;
state->misc_table = 0;
- state->node = (void *)1;
+ state->node = SEQ_START_TOKEN;
- return *pos ? lec_get_idx(state, *pos) : (void *)1;
+ return *pos ? lec_get_idx(state, *pos) : SEQ_START_TOKEN;
}
static 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)
" Status Flags "
"VPI/VCI Recv VPI/VCI\n";
- if (v == (void *)1)
+ if (v == SEQ_START_TOKEN)
seq_puts(seq, lec_banner);
else {
struct lec_state *state = seq->private;