Commit 7e5ab157813993356f021757d0b0dcbdca7c55a1
Committed by
David S. Miller
1 parent
9badba2543
Exists in
master
and in
7 other branches
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: Tom Goff <thomas.goff@boeing.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff
net/sched/sch_api.c
... | ... | @@ -1683,7 +1683,7 @@ |
1683 | 1683 | |
1684 | 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 | 1689 | static const struct file_operations psched_fops = { |
... | ... | @@ -1708,8 +1708,6 @@ |
1708 | 1708 | static void __net_exit psched_net_exit(struct net *net) |
1709 | 1709 | { |
1710 | 1710 | proc_net_remove(net, "psched"); |
1711 | - | |
1712 | - return; | |
1713 | 1711 | } |
1714 | 1712 | #else |
1715 | 1713 | static int __net_init psched_net_init(struct net *net) |