diff options
author | Denis V. Lunev <den@openvz.org> | 2008-03-28 21:25:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-28 21:25:32 -0400 |
commit | 3ba9441bdf07370670a684e6d95dfc523476677f (patch) | |
tree | ec31a5f5c5e1fc0d807575c733a04d2adbf44c09 /net/ipv6/udp.c | |
parent | a2be75c182cd16bc104919e33451ffda8b6f65b4 (diff) |
[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>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index e35921a46689..ff8d53ecdd60 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -977,13 +977,11 @@ int udp6_seq_show(struct seq_file *seq, void *v) | |||
977 | return 0; | 977 | return 0; |
978 | } | 978 | } |
979 | 979 | ||
980 | static struct file_operations udp6_seq_fops; | ||
981 | static struct udp_seq_afinfo udp6_seq_afinfo = { | 980 | static struct udp_seq_afinfo udp6_seq_afinfo = { |
982 | .owner = THIS_MODULE, | 981 | .owner = THIS_MODULE, |
983 | .name = "udp6", | 982 | .name = "udp6", |
984 | .family = AF_INET6, | 983 | .family = AF_INET6, |
985 | .hashtable = udp_hash, | 984 | .hashtable = udp_hash, |
986 | .seq_fops = &udp6_seq_fops, | ||
987 | .seq_ops = { | 985 | .seq_ops = { |
988 | .show = udp6_seq_show, | 986 | .show = udp6_seq_show, |
989 | }, | 987 | }, |