projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e47879
)
[SCTP]: Use proc_create to setup de->proc_fops.
author
Pavel Emelyanov
<xemul@openvz.org>
Fri, 29 Feb 2008 19:24:45 +0000
(11:24 -0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 29 Feb 2008 19:24:45 +0000
(11:24 -0800)
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>
net/sctp/proc.c
patch
|
blob
|
history
diff --git
a/net/sctp/proc.c
b/net/sctp/proc.c
index 9e214da82d9eb0aff64f7844d219d2689cb4a475..973f1dbc2ec3a8555542601cf900abb4b22d022a 100644
(file)
--- a/
net/sctp/proc.c
+++ b/
net/sctp/proc.c
@@
-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;
}
@@
-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;
}