diff options
| author | Gao feng <gaofeng@cn.fujitsu.com> | 2013-02-17 20:34:56 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-02-18 14:53:08 -0500 |
| commit | ece31ffd539e8e2b586b1ca5f50bc4f4591e3893 (patch) | |
| tree | 05407d915a4c0be78a4aa85f54ae3b148ec91ea3 /net/dccp | |
| parent | b4278c961aca320839964e23cfc7906ff61af0c2 (diff) | |
net: proc: change proc_net_remove to remove_proc_entry
proc_net_remove is only used to remove proc entries
that under /proc/net,it's not a general function for
removing proc entries of netns. if we want to remove
some proc entries which under /proc/net/stat/, we still
need to call remove_proc_entry.
this patch use remove_proc_entry to replace proc_net_remove.
we can remove proc_net_remove after this patch.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
| -rw-r--r-- | net/dccp/probe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dccp/probe.c b/net/dccp/probe.c index d183589b77e9..4c6bdf97a657 100644 --- a/net/dccp/probe.c +++ b/net/dccp/probe.c | |||
| @@ -181,7 +181,7 @@ static __init int dccpprobe_init(void) | |||
| 181 | pr_info("DCCP watch registered (port=%d)\n", port); | 181 | pr_info("DCCP watch registered (port=%d)\n", port); |
| 182 | return 0; | 182 | return 0; |
| 183 | err1: | 183 | err1: |
| 184 | proc_net_remove(&init_net, procname); | 184 | remove_proc_entry(procname, init_net.proc_net); |
| 185 | err0: | 185 | err0: |
| 186 | kfifo_free(&dccpw.fifo); | 186 | kfifo_free(&dccpw.fifo); |
| 187 | return ret; | 187 | return ret; |
| @@ -191,7 +191,7 @@ module_init(dccpprobe_init); | |||
| 191 | static __exit void dccpprobe_exit(void) | 191 | static __exit void dccpprobe_exit(void) |
| 192 | { | 192 | { |
| 193 | kfifo_free(&dccpw.fifo); | 193 | kfifo_free(&dccpw.fifo); |
| 194 | proc_net_remove(&init_net, procname); | 194 | remove_proc_entry(procname, init_net.proc_net); |
| 195 | unregister_jprobe(&dccp_send_probe); | 195 | unregister_jprobe(&dccp_send_probe); |
| 196 | 196 | ||
| 197 | } | 197 | } |
