summaryrefslogtreecommitdiffstats
path: root/net/atm/proc.c
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2010-02-09 00:21:51 +0100
committerDavid S. Miller <davem@davemloft.net>2010-02-10 21:31:10 +0100
commit67de792420be2daa1c6fec07ec8552af9ea0bde3 (patch)
tree5a0141ea6d3d0f6557a6bd9ec3351d00d6a95f58 /net/atm/proc.c
parentnet: ipx: use seq_list_foo() helpers (diff)
downloadlinux-67de792420be2daa1c6fec07ec8552af9ea0bde3.tar.xz
linux-67de792420be2daa1c6fec07ec8552af9ea0bde3.zip
net: atm: use seq_list_foo() helpers
Simplify seq_file code. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/proc.c')
-rw-r--r--net/atm/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/atm/proc.c b/net/atm/proc.c
index 476779d845eb..7a96b2376bd7 100644
--- a/net/atm/proc.c
+++ b/net/atm/proc.c
@@ -238,7 +238,7 @@ static int atm_dev_seq_show(struct seq_file *seq, void *v)
"Itf Type ESI/\"MAC\"addr "
"AAL(TX,err,RX,err,drop) ... [refcnt]\n";
- if (v == SEQ_START_TOKEN)
+ if (v == &atm_devs)
seq_puts(seq, atm_dev_banner);
else {
struct atm_dev *dev = list_entry(v, struct atm_dev, dev_list);