Skip to content

Commit

Permalink
net_sched: minor netns related cleanup
Browse files Browse the repository at this point in the history
These changes were suggested by Alexey Dobriyan <adobriyan@gmail.com>:

  - psched_show() does not use any private data so just pass NULL to
    psched_open()

  - remove unnecessary return statement

Signed-off-by: Tom Goff <thomas.goff@boeing.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tom Goff authored and David S. Miller committed Mar 31, 2010
1 parent 9badba2 commit 7e5ab15
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/sched/sch_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ static int psched_show(struct seq_file *seq, void *v)

static int psched_open(struct inode *inode, struct file *file)
{
return single_open(file, psched_show, PDE(inode)->data);
return single_open(file, psched_show, NULL);
}

static const struct file_operations psched_fops = {
Expand All @@ -1708,8 +1708,6 @@ static int __net_init psched_net_init(struct net *net)
static void __net_exit psched_net_exit(struct net *net)
{
proc_net_remove(net, "psched");

return;
}
#else
static int __net_init psched_net_init(struct net *net)
Expand Down

0 comments on commit 7e5ab15

Please sign in to comment.