diff options
author | Joe Perches | 2008-04-10 12:33:03 +0200 |
---|---|---|
committer | David S. Miller | 2008-04-10 12:33:03 +0200 |
commit | 2e1e9848accba7e5f6a731bf0d0fc2c84f3ee748 (patch) | |
tree | 7e79d8938d7763f77c66b8448c358f5adc8ba14b /net/atm/resources.c | |
parent | [Syncookies]: Add support for TCP options via timestamps. (diff) | |
download | kernel-qcow2-linux-2e1e9848accba7e5f6a731bf0d0fc2c84f3ee748.tar.gz kernel-qcow2-linux-2e1e9848accba7e5f6a731bf0d0fc2c84f3ee748.tar.xz kernel-qcow2-linux-2e1e9848accba7e5f6a731bf0d0fc2c84f3ee748.zip |
[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/resources.c')
-rw-r--r-- | net/atm/resources.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/atm/resources.c b/net/atm/resources.c index 1bcf6dc8d409..a34ba948af96 100644 --- a/net/atm/resources.c +++ b/net/atm/resources.c @@ -415,7 +415,7 @@ static __inline__ void *dev_get_idx(loff_t left) void *atm_dev_seq_start(struct seq_file *seq, loff_t *pos) { mutex_lock(&atm_dev_mutex); - return *pos ? dev_get_idx(*pos) : (void *) 1; + return *pos ? dev_get_idx(*pos) : SEQ_START_TOKEN; } void atm_dev_seq_stop(struct seq_file *seq, void *v) @@ -426,7 +426,8 @@ void atm_dev_seq_stop(struct seq_file *seq, void *v) void *atm_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) { ++*pos; - v = (v == (void *)1) ? atm_devs.next : ((struct list_head *)v)->next; + v = (v == SEQ_START_TOKEN) + ? atm_devs.next : ((struct list_head *)v)->next; return (v == &atm_devs) ? NULL : v; } |