diff options
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r-- | net/unix/af_unix.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 1a9cdad4ab82..95b02a71fd47 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
@@ -2844,20 +2844,6 @@ static const struct seq_operations unix_seq_ops = { | |||
2844 | .stop = unix_seq_stop, | 2844 | .stop = unix_seq_stop, |
2845 | .show = unix_seq_show, | 2845 | .show = unix_seq_show, |
2846 | }; | 2846 | }; |
2847 | |||
2848 | static int unix_seq_open(struct inode *inode, struct file *file) | ||
2849 | { | ||
2850 | return seq_open_net(inode, file, &unix_seq_ops, | ||
2851 | sizeof(struct seq_net_private)); | ||
2852 | } | ||
2853 | |||
2854 | static const struct file_operations unix_seq_fops = { | ||
2855 | .open = unix_seq_open, | ||
2856 | .read = seq_read, | ||
2857 | .llseek = seq_lseek, | ||
2858 | .release = seq_release_net, | ||
2859 | }; | ||
2860 | |||
2861 | #endif | 2847 | #endif |
2862 | 2848 | ||
2863 | static const struct net_proto_family unix_family_ops = { | 2849 | static const struct net_proto_family unix_family_ops = { |
@@ -2876,7 +2862,8 @@ static int __net_init unix_net_init(struct net *net) | |||
2876 | goto out; | 2862 | goto out; |
2877 | 2863 | ||
2878 | #ifdef CONFIG_PROC_FS | 2864 | #ifdef CONFIG_PROC_FS |
2879 | if (!proc_create("unix", 0, net->proc_net, &unix_seq_fops)) { | 2865 | if (!proc_create_net("unix", 0, net->proc_net, &unix_seq_ops, |
2866 | sizeof(struct seq_net_private))) { | ||
2880 | unix_sysctl_unregister(net); | 2867 | unix_sysctl_unregister(net); |
2881 | goto out; | 2868 | goto out; |
2882 | } | 2869 | } |