Commit f89170ea authored by Pavel Emelyanov's avatar Pavel Emelyanov

sockets: Remove unused listen hash

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b3867516
......@@ -64,14 +64,6 @@ struct unix_sk_listen_icon {
struct unix_sk_listen_icon *next;
};
struct unix_sk_listen {
unsigned int ino;
struct sockaddr_un addr;
unsigned int addrlen;
int type;
struct unix_sk_listen *next;
};
#define INET_ADDR_LEN 40
struct inet_sk_desc {
......@@ -208,18 +200,6 @@ __gen_static_lookup_func(struct unix_sk_listen_icon,
unix_listen_icons,
peer_ino, unsigned int, ino);
static struct unix_sk_listen *unix_listen[SK_HASH_SIZE];
static struct unix_sk_listen *lookup_unix_listen(unsigned int ino, int type)
{
struct unix_sk_listen *l;
for (l = unix_listen[ino % SK_HASH_SIZE]; l != NULL; l = l->next)
if ((l->ino == ino) && (l->type == type))
return l;
return NULL;
}
static int sk_collect_one(int ino, int family, struct socket_desc *d)
{
d->ino = ino;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment