[TCP]: Remove owner from tcp_seq_afinfo.
authorDenis V. Lunev <den@openvz.org>
Mon, 14 Apr 2008 05:13:53 +0000 (22:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Apr 2008 05:13:53 +0000 (22:13 -0700)
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>
include/net/tcp.h
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c

index 93479ebf3e33a532a984bd99b05af52c577b4d60..58d82822414d04263b3c697612c1dfcaf12af88d 100644 (file)
@@ -1325,7 +1325,6 @@ enum tcp_seq_states {
 };
 
 struct tcp_seq_afinfo {
-       struct module           *owner;
        char                    *name;
        sa_family_t             family;
        struct file_operations  seq_fops;
index 3696c83aec19520861762b94472e546748e3e4c2..02519730e0d5a129e8e3f752167cfed1ae560f93 100644 (file)
@@ -2232,7 +2232,6 @@ int tcp_proc_register(struct net *net, struct tcp_seq_afinfo *afinfo)
        int rc = 0;
        struct proc_dir_entry *p;
 
-       afinfo->seq_fops.owner          = afinfo->owner;
        afinfo->seq_fops.open           = tcp_seq_open;
        afinfo->seq_fops.read           = seq_read;
        afinfo->seq_fops.llseek         = seq_lseek;
@@ -2382,9 +2381,11 @@ out:
 }
 
 static struct tcp_seq_afinfo tcp4_seq_afinfo = {
-       .owner          = THIS_MODULE,
        .name           = "tcp",
        .family         = AF_INET,
+       .seq_fops       = {
+               .owner          = THIS_MODULE,
+       },
        .seq_ops        = {
                .show           = tcp4_seq_show,
        },
index e33a3dc7a0005a181811dd7730a1deb33f7cd30c..231c4dddfb8cc7d44441e5459ef2edb324488c54 100644 (file)
@@ -2121,9 +2121,11 @@ out:
 }
 
 static struct tcp_seq_afinfo tcp6_seq_afinfo = {
-       .owner          = THIS_MODULE,
        .name           = "tcp6",
        .family         = AF_INET6,
+       .seq_fops       = {
+               .owner          = THIS_MODULE,
+       },
        .seq_ops        = {
                .show           = tcp6_seq_show,
        },