summaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2009-08-23 21:11:36 +0200
committerVlad Yasevich <vladislav.yasevich@hp.com>2009-09-05 00:20:58 +0200
commitd71a09ed555e52299b5d3ad8945bdf84f65423a6 (patch)
tree7b2287417fdcd6c65a00942f8b914f9681b4ebf1 /net/sctp
parentsctp: fix check the chunk length of received HEARTBEAT-ACK chunk (diff)
downloadlinux-d71a09ed555e52299b5d3ad8945bdf84f65423a6.tar.xz
linux-d71a09ed555e52299b5d3ad8945bdf84f65423a6.zip
sctp: use proc_create()
create_proc_entry() is deprecated (not formally, though). Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/proc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sctp/proc.c b/net/sctp/proc.c
index f268910620be..d093cbfeaac4 100644
--- a/net/sctp/proc.c
+++ b/net/sctp/proc.c
@@ -512,10 +512,8 @@ int __init sctp_remaddr_proc_init(void)
{
struct proc_dir_entry *p;
- p = create_proc_entry("remaddr", S_IRUGO, proc_net_sctp);
+ p = proc_create("remaddr", S_IRUGO, proc_net_sctp, &sctp_remaddr_seq_fops);
if (!p)
return -ENOMEM;
- p->proc_fops = &sctp_remaddr_seq_fops;
-
return 0;
}