diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-02-29 14:24:45 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-29 14:24:45 -0500 |
commit | 459eea74104ad85c30e17541c2b30d776445e985 (patch) | |
tree | 3d1b8e922e391e8300a40bd1fb4f676a79812138 | |
parent | 5e47879f493e14a017d1facefc601f43c477dbee (diff) |
[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: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sctp/proc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/net/sctp/proc.c b/net/sctp/proc.c index 9e214da82d9..973f1dbc2ec 100644 --- a/net/sctp/proc.c +++ b/net/sctp/proc.c | |||
@@ -256,12 +256,10 @@ int __init sctp_eps_proc_init(void) | |||
256 | { | 256 | { |
257 | struct proc_dir_entry *p; | 257 | struct proc_dir_entry *p; |
258 | 258 | ||
259 | p = create_proc_entry("eps", S_IRUGO, proc_net_sctp); | 259 | p = proc_create("eps", S_IRUGO, proc_net_sctp, &sctp_eps_seq_fops); |
260 | if (!p) | 260 | if (!p) |
261 | return -ENOMEM; | 261 | return -ENOMEM; |
262 | 262 | ||
263 | p->proc_fops = &sctp_eps_seq_fops; | ||
264 | |||
265 | return 0; | 263 | return 0; |
266 | } | 264 | } |
267 | 265 | ||
@@ -367,12 +365,11 @@ int __init sctp_assocs_proc_init(void) | |||
367 | { | 365 | { |
368 | struct proc_dir_entry *p; | 366 | struct proc_dir_entry *p; |
369 | 367 | ||
370 | p = create_proc_entry("assocs", S_IRUGO, proc_net_sctp); | 368 | p = proc_create("assocs", S_IRUGO, proc_net_sctp, |
369 | &sctp_assocs_seq_fops); | ||
371 | if (!p) | 370 | if (!p) |
372 | return -ENOMEM; | 371 | return -ENOMEM; |
373 | 372 | ||
374 | p->proc_fops = &sctp_assocs_seq_fops; | ||
375 | |||
376 | return 0; | 373 | return 0; |
377 | } | 374 | } |
378 | 375 | ||