Commit c65b6521 authored by Gou Hao's avatar Gou Hao Committed by Paolo Abeni
Browse files

net/core: remove redundant sk_callback_lock initialization



sk_callback_lock has already been initialized in sk_init_common().

Signed-off-by: default avatarGou Hao <gouhao@uniontech.com>
Reviewed-by: default avatarBreno Leitao <leitao@debian.org>
Link: https://lore.kernel.org/r/20240526145718.9542-1-gouhao@uniontech.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 5233a55a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3460,7 +3460,6 @@ void sock_init_data_uid(struct socket *sock, struct sock *sk, kuid_t uid)
	}
	sk->sk_uid	=	uid;

	rwlock_init(&sk->sk_callback_lock);
	if (sk->sk_kern_sock)
		lockdep_set_class_and_name(
			&sk->sk_callback_lock,