aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-04-14 01:13:53 -0400
committerDavid S. Miller <davem@davemloft.net>2008-04-14 01:13:53 -0400
commit5f4472c5a640c9671ca5becaebdfd6e651482176 (patch)
treee4efabf6e55c820968facc5c1c9fe5d469e5046b /net
parent68fcadd16c371d5e0698ba366f33a4f990ce83ce (diff)
[TCP]: Remove owner from tcp_seq_afinfo.
Move it to tcp_seq_afinfo->seq_fops as should be. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/tcp_ipv4.c5
-rw-r--r--net/ipv6/tcp_ipv6.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 3696c83aec19..02519730e0d5 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -2232,7 +2232,6 @@ int tcp_proc_register(struct net *net, struct tcp_seq_afinfo *afinfo)
2232 int rc = 0; 2232 int rc = 0;
2233 struct proc_dir_entry *p; 2233 struct proc_dir_entry *p;
2234 2234
2235 afinfo->seq_fops.owner = afinfo->owner;
2236 afinfo->seq_fops.open = tcp_seq_open; 2235 afinfo->seq_fops.open = tcp_seq_open;
2237 afinfo->seq_fops.read = seq_read; 2236 afinfo->seq_fops.read = seq_read;
2238 afinfo->seq_fops.llseek = seq_lseek; 2237 afinfo->seq_fops.llseek = seq_lseek;
@@ -2382,9 +2381,11 @@ out:
2382} 2381}
2383 2382
2384static struct tcp_seq_afinfo tcp4_seq_afinfo = { 2383static struct tcp_seq_afinfo tcp4_seq_afinfo = {
2385 .owner = THIS_MODULE,
2386 .name = "tcp", 2384 .name = "tcp",
2387 .family = AF_INET, 2385 .family = AF_INET,
2386 .seq_fops = {
2387 .owner = THIS_MODULE,
2388 },
2388 .seq_ops = { 2389 .seq_ops = {
2389 .show = tcp4_seq_show, 2390 .show = tcp4_seq_show,
2390 }, 2391 },
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index e33a3dc7a000..231c4dddfb8c 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -2121,9 +2121,11 @@ out:
2121} 2121}
2122 2122
2123static struct tcp_seq_afinfo tcp6_seq_afinfo = { 2123static struct tcp_seq_afinfo tcp6_seq_afinfo = {
2124 .owner = THIS_MODULE,
2125 .name = "tcp6", 2124 .name = "tcp6",
2126 .family = AF_INET6, 2125 .family = AF_INET6,
2126 .seq_fops = {
2127 .owner = THIS_MODULE,
2128 },
2127 .seq_ops = { 2129 .seq_ops = {
2128 .show = tcp6_seq_show, 2130 .show = tcp6_seq_show,
2129 }, 2131 },