Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59026
b: refs/heads/master
c: 9af9718
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Emelianov authored and David S. Miller committed Jul 11, 2007
1 parent a9ab62f commit d403059
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c8c7d64169dc4b1ae3d8cd1bf35ea0a099b50ad
refs/heads/master: 9af97186fcc9a1d9bbf195eb4bc2399d0dd66223
22 changes: 4 additions & 18 deletions trunk/net/atm/br2684.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,28 +699,13 @@ static struct atm_ioctl br2684_ioctl_ops = {
#ifdef CONFIG_PROC_FS
static void *br2684_seq_start(struct seq_file *seq, loff_t *pos)
{
loff_t offs = 0;
struct br2684_dev *brd;

read_lock(&devs_lock);

list_for_each_entry(brd, &br2684_devs, br2684_devs) {
if (offs == *pos)
return brd;
++offs;
}
return NULL;
return seq_list_start(&br2684_devs, *pos);
}

static void *br2684_seq_next(struct seq_file *seq, void *v, loff_t *pos)
{
struct br2684_dev *brd = v;

++*pos;

brd = list_entry(brd->br2684_devs.next,
struct br2684_dev, br2684_devs);
return (&brd->br2684_devs != &br2684_devs) ? brd : NULL;
return seq_list_next(v, &br2684_devs, pos);
}

static void br2684_seq_stop(struct seq_file *seq, void *v)
Expand All @@ -730,7 +715,8 @@ static void br2684_seq_stop(struct seq_file *seq, void *v)

static int br2684_seq_show(struct seq_file *seq, void *v)
{
const struct br2684_dev *brdev = v;
const struct br2684_dev *brdev = list_entry(v, struct br2684_dev,
br2684_devs);
const struct net_device *net_dev = brdev->net_dev;
const struct br2684_vcc *brvcc;

Expand Down

0 comments on commit d403059

Please sign in to comment.