[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>
This commit is contained in:

committed by
David S. Miller

parent
b1641064a3
commit
377cf82d66
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user