summaryrefslogtreecommitdiffstats
path: root/net/ipv6/raw.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-01-31 12:46:12 +0100
committerDavid S. Miller <davem@davemloft.net>2008-02-01 04:27:24 +0100
commit377cf82d66ea43f3d3cb82c2563e65b5c12c9bfd (patch)
tree9bce5ff5153b91104dcf560626a12289d013809e /net/ipv6/raw.c
parent[IPCOMP]: Fix reception of incompressible packets (diff)
downloadlinux-377cf82d66ea43f3d3cb82c2563e65b5c12c9bfd.tar.xz
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 = {