[3/3] clean up /proc/net/{anycast6,igmp6}
Index: linux-2.6/net/ipv6/anycast.c
===================================================================
RCS file: /home/cvs/linux-2.5/net/ipv6/anycast.c,v
retrieving revision 1.7
diff -u -r1.7 anycast.c
--- linux-2.6/net/ipv6/anycast.c 25 Jul 2003 17:11:54 -0000 1.7
+++ linux-2.6/net/ipv6/anycast.c 6 Sep 2003 04:23:07 -0000
@@ -505,7 +505,7 @@
static void *ac6_seq_start(struct seq_file *seq, loff_t *pos)
{
read_lock(&dev_base_lock);
- return *pos ? ac6_get_idx(seq, *pos) : ac6_get_first(seq);
+ return ac6_get_idx(seq, *pos);
}
static void *ac6_seq_next(struct seq_file *seq, void *v, loff_t *pos)
Index: linux-2.6/net/ipv6/mcast.c
===================================================================
RCS file: /home/cvs/linux-2.5/net/ipv6/mcast.c,v
retrieving revision 1.31
diff -u -r1.31 mcast.c
--- linux-2.6/net/ipv6/mcast.c 1 Sep 2003 05:52:50 -0000 1.31
+++ linux-2.6/net/ipv6/mcast.c 6 Sep 2003 04:23:07 -0000
@@ -2119,7 +2119,7 @@
static void *igmp6_mc_seq_start(struct seq_file *seq, loff_t *pos)
{
read_lock(&dev_base_lock);
- return *pos ? igmp6_mc_get_idx(seq, *pos) : igmp6_mc_get_first(seq);
+ return igmp6_mc_get_idx(seq, *pos);
}
static void *igmp6_mc_seq_next(struct seq_file *seq, void *v, loff_t *pos)
--
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@xxxxxxxxxxxxxx>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
|