diff options
Diffstat (limited to 'net/sched/sch_api.c')
-rw-r--r-- | net/sched/sch_api.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 6d6fe16289f3..c65866da17bc 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c | |||
@@ -1683,7 +1683,7 @@ static int psched_show(struct seq_file *seq, void *v) | |||
1683 | 1683 | ||
1684 | static int psched_open(struct inode *inode, struct file *file) | 1684 | static int psched_open(struct inode *inode, struct file *file) |
1685 | { | 1685 | { |
1686 | return single_open(file, psched_show, PDE(inode)->data); | 1686 | return single_open(file, psched_show, NULL); |
1687 | } | 1687 | } |
1688 | 1688 | ||
1689 | static const struct file_operations psched_fops = { | 1689 | static const struct file_operations psched_fops = { |
@@ -1708,8 +1708,6 @@ static int __net_init psched_net_init(struct net *net) | |||
1708 | static void __net_exit psched_net_exit(struct net *net) | 1708 | static void __net_exit psched_net_exit(struct net *net) |
1709 | { | 1709 | { |
1710 | proc_net_remove(net, "psched"); | 1710 | proc_net_remove(net, "psched"); |
1711 | |||
1712 | return; | ||
1713 | } | 1711 | } |
1714 | #else | 1712 | #else |
1715 | static int __net_init psched_net_init(struct net *net) | 1713 | static int __net_init psched_net_init(struct net *net) |