Skip to content

Commit

Permalink
[SCTP]: Use proc_create to setup de->proc_fops.
Browse files Browse the repository at this point in the history
In addition to commit 160f17 ("[SCTP]: Use proc_create() to setup
->proc_fops first") use proc_create in two more places.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Feb 29, 2008
1 parent 5e47879 commit 459eea7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions net/sctp/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,10 @@ int __init sctp_eps_proc_init(void)
{
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)
return -ENOMEM;

p->proc_fops = &sctp_eps_seq_fops;

return 0;
}

Expand Down Expand Up @@ -367,12 +365,11 @@ int __init sctp_assocs_proc_init(void)
{
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)
return -ENOMEM;

p->proc_fops = &sctp_assocs_seq_fops;

return 0;
}

Expand Down

0 comments on commit 459eea7

Please sign in to comment.