Commit d90a0b5b authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[NET]: Clean up /proc/net/{anycast6/igmp6}.

parent c31ba884
...@@ -505,7 +505,7 @@ static struct ifacaddr6 *ac6_get_idx(struct seq_file *seq, loff_t pos) ...@@ -505,7 +505,7 @@ static struct ifacaddr6 *ac6_get_idx(struct seq_file *seq, loff_t pos)
static void *ac6_seq_start(struct seq_file *seq, loff_t *pos) static void *ac6_seq_start(struct seq_file *seq, loff_t *pos)
{ {
read_lock(&dev_base_lock); 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) static void *ac6_seq_next(struct seq_file *seq, void *v, loff_t *pos)
......
...@@ -2119,7 +2119,7 @@ static struct ifmcaddr6 *igmp6_mc_get_idx(struct seq_file *seq, loff_t pos) ...@@ -2119,7 +2119,7 @@ static struct ifmcaddr6 *igmp6_mc_get_idx(struct seq_file *seq, loff_t pos)
static void *igmp6_mc_seq_start(struct seq_file *seq, loff_t *pos) static void *igmp6_mc_seq_start(struct seq_file *seq, loff_t *pos)
{ {
read_lock(&dev_base_lock); 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) static void *igmp6_mc_seq_next(struct seq_file *seq, void *v, loff_t *pos)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment