Commit 459eea74 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by David S. Miller

[SCTP]: Use proc_create to setup de->proc_fops.

In addition to commit 160f17 ("[SCTP]: Use proc_create() to setup
->proc_fops first") use proc_create in two more places.
Signed-off-by: default avatarPavel Emelyanov <xemul@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5e47879f
...@@ -256,12 +256,10 @@ int __init sctp_eps_proc_init(void) ...@@ -256,12 +256,10 @@ int __init sctp_eps_proc_init(void)
{ {
struct proc_dir_entry *p; struct proc_dir_entry *p;
p = create_proc_entry("eps", S_IRUGO, proc_net_sctp); p = proc_create("eps", S_IRUGO, proc_net_sctp, &sctp_eps_seq_fops);
if (!p) if (!p)
return -ENOMEM; return -ENOMEM;
p->proc_fops = &sctp_eps_seq_fops;
return 0; return 0;
} }
...@@ -367,12 +365,11 @@ int __init sctp_assocs_proc_init(void) ...@@ -367,12 +365,11 @@ int __init sctp_assocs_proc_init(void)
{ {
struct proc_dir_entry *p; struct proc_dir_entry *p;
p = create_proc_entry("assocs", S_IRUGO, proc_net_sctp); p = proc_create("assocs", S_IRUGO, proc_net_sctp,
&sctp_assocs_seq_fops);
if (!p) if (!p)
return -ENOMEM; return -ENOMEM;
p->proc_fops = &sctp_assocs_seq_fops;
return 0; return 0;
} }
......
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