From: Tom Goff Date: Wed, 31 Mar 2010 02:44:56 +0000 (-0700) Subject: net_sched: minor netns related cleanup X-Git-Tag: MMI-PSA29.97-13-9~23873^2~646 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7e5ab157813993356f021757d0b0dcbdca7c55a1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git net_sched: minor netns related cleanup These changes were suggested by Alexey Dobriyan : - psched_show() does not use any private data so just pass NULL to psched_open() - remove unnecessary return statement Signed-off-by: Tom Goff Signed-off-by: David S. Miller --- 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) 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 = { @@ -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)