[TCP]: Place file operations directly into tcp_seq_afinfo.
No need to have separate never-used variable. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
52d6f3f11b
commit
68fcadd16c
@@ -2120,12 +2120,10 @@ out:
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct file_operations tcp6_seq_fops;
|
||||
static struct tcp_seq_afinfo tcp6_seq_afinfo = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "tcp6",
|
||||
.family = AF_INET6,
|
||||
.seq_fops = &tcp6_seq_fops,
|
||||
.seq_ops = {
|
||||
.show = tcp6_seq_show,
|
||||
},
|
||||
|
Reference in New Issue
Block a user