Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba2489b0 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: remove clear_sk() method



We no longer use this handler, we can delete it.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 391bb6be
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1020,7 +1020,6 @@ struct proto {
	void			(*unhash)(struct sock *sk);
	void			(*rehash)(struct sock *sk);
	int			(*get_port)(struct sock *sk, unsigned short snum);
	void			(*clear_sk)(struct sock *sk, int size);

	/* Keeping track of sockets in use */
#ifdef CONFIG_PROC_FS
+2 −6
Original line number Diff line number Diff line
@@ -1326,12 +1326,8 @@ static struct sock *sk_prot_alloc(struct proto *prot, gfp_t priority,
		sk = kmem_cache_alloc(slab, priority & ~__GFP_ZERO);
		if (!sk)
			return sk;
		if (priority & __GFP_ZERO) {
			if (prot->clear_sk)
				prot->clear_sk(sk, prot->obj_size);
			else
		if (priority & __GFP_ZERO)
			sk_prot_clear_nulls(sk, prot->obj_size);
		}
	} else
		sk = kmalloc(prot->obj_size, priority);