summaryrefslogtreecommitdiffstats
path: root/net/ipv6/raw.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-01-31 03:46:12 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-31 19:27:24 -0800
commit377cf82d66ea43f3d3cb82c2563e65b5c12c9bfd (patch)
tree9bce5ff5153b91104dcf560626a12289d013809e /net/ipv6/raw.c
parentb1641064a3f4a58644bc2e8edf40c025c58473b4 (diff)
downloadlinux-377cf82d66ea43f3d3cb82c2563e65b5c12c9bfd.tar.gz
linux-377cf82d66ea43f3d3cb82c2563e65b5c12c9bfd.tar.bz2
linux-377cf82d66ea43f3d3cb82c2563e65b5c12c9bfd.zip
[RAW]: Family check in the /proc/net/raw[6] is extra.
Different hashtables are used for IPv6 and IPv4 raw sockets, so no need to check the socket family in the iterator over hashtables. Clean this out. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/raw.c')
-rw-r--r--net/ipv6/raw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index d61c63dedbf6..a2cf49911ffd 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -1262,7 +1262,7 @@ static const struct seq_operations raw6_seq_ops = {
static int raw6_seq_open(struct inode *inode, struct file *file)
{
- return raw_seq_open(inode, file, &raw_v6_hashinfo, PF_INET6);
+ return raw_seq_open(inode, file, &raw_v6_hashinfo);
}
static const struct file_operations raw6_seq_fops = {