diff options
Diffstat (limited to 'net/sctp/proc.c')
-rw-r--r-- | net/sctp/proc.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/net/sctp/proc.c b/net/sctp/proc.c index 69bb5a63fd8b..973f1dbc2ec3 100644 --- a/net/sctp/proc.c +++ b/net/sctp/proc.c | |||
@@ -108,12 +108,10 @@ int __init sctp_snmp_proc_init(void) | |||
108 | { | 108 | { |
109 | struct proc_dir_entry *p; | 109 | struct proc_dir_entry *p; |
110 | 110 | ||
111 | p = create_proc_entry("snmp", S_IRUGO, proc_net_sctp); | 111 | p = proc_create("snmp", S_IRUGO, proc_net_sctp, &sctp_snmp_seq_fops); |
112 | if (!p) | 112 | if (!p) |
113 | return -ENOMEM; | 113 | return -ENOMEM; |
114 | 114 | ||
115 | p->proc_fops = &sctp_snmp_seq_fops; | ||
116 | |||
117 | return 0; | 115 | return 0; |
118 | } | 116 | } |
119 | 117 | ||
@@ -258,12 +256,10 @@ int __init sctp_eps_proc_init(void) | |||
258 | { | 256 | { |
259 | struct proc_dir_entry *p; | 257 | struct proc_dir_entry *p; |
260 | 258 | ||
261 | p = create_proc_entry("eps", S_IRUGO, proc_net_sctp); | 259 | p = proc_create("eps", S_IRUGO, proc_net_sctp, &sctp_eps_seq_fops); |
262 | if (!p) | 260 | if (!p) |
263 | return -ENOMEM; | 261 | return -ENOMEM; |
264 | 262 | ||
265 | p->proc_fops = &sctp_eps_seq_fops; | ||
266 | |||
267 | return 0; | 263 | return 0; |
268 | } | 264 | } |
269 | 265 | ||
@@ -369,12 +365,11 @@ int __init sctp_assocs_proc_init(void) | |||
369 | { | 365 | { |
370 | struct proc_dir_entry *p; | 366 | struct proc_dir_entry *p; |
371 | 367 | ||
372 | 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); | ||
373 | if (!p) | 370 | if (!p) |
374 | return -ENOMEM; | 371 | return -ENOMEM; |
375 | 372 | ||
376 | p->proc_fops = &sctp_assocs_seq_fops; | ||
377 | |||
378 | return 0; | 373 | return 0; |
379 | } | 374 | } |
380 | 375 | ||