Commit 7e5ab157 authored by Tom Goff's avatar Tom Goff Committed by David S. Miller

net_sched: minor netns related cleanup

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: default avatarTom Goff <thomas.goff@boeing.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9badba25
...@@ -1683,7 +1683,7 @@ static int psched_show(struct seq_file *seq, void *v) ...@@ -1683,7 +1683,7 @@ static int psched_show(struct seq_file *seq, void *v)
static int psched_open(struct inode *inode, struct file *file) 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 = { static const struct file_operations psched_fops = {
...@@ -1708,8 +1708,6 @@ static int __net_init psched_net_init(struct net *net) ...@@ -1708,8 +1708,6 @@ static int __net_init psched_net_init(struct net *net)
static void __net_exit psched_net_exit(struct net *net) static void __net_exit psched_net_exit(struct net *net)
{ {
proc_net_remove(net, "psched"); proc_net_remove(net, "psched");
return;
} }
#else #else
static int __net_init psched_net_init(struct net *net) static int __net_init psched_net_init(struct net *net)
......
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