[UDP]: Place file operations directly into udp_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:
Denis V. Lunev
2008-03-28 18:25:32 -07:00
committed by David S. Miller
szülő a2be75c182
commit 3ba9441bdf
5 fájl változott, egészen pontosan 7 új sor hozzáadva és 16 régi sor törölve

Fájl megtekintése

@@ -977,13 +977,11 @@ int udp6_seq_show(struct seq_file *seq, void *v)
return 0;
}
static struct file_operations udp6_seq_fops;
static struct udp_seq_afinfo udp6_seq_afinfo = {
.owner = THIS_MODULE,
.name = "udp6",
.family = AF_INET6,
.hashtable = udp_hash,
.seq_fops = &udp6_seq_fops,
.seq_ops = {
.show = udp6_seq_show,
},

Fájl megtekintése

@@ -96,13 +96,11 @@ void udplitev6_exit(void)
}
#ifdef CONFIG_PROC_FS
static struct file_operations udplite6_seq_fops;
static struct udp_seq_afinfo udplite6_seq_afinfo = {
.owner = THIS_MODULE,
.name = "udplite6",
.family = AF_INET6,
.hashtable = udplite_hash,
.seq_fops = &udplite6_seq_fops,
.seq_ops = {
.show = udp6_seq_show,
},