[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240526145718.9542-1-gouhao@uniontech.com>
Date: Sun, 26 May 2024 22:57:17 +0800
From: Gou Hao <gouhao@...ontech.com>
To: davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
kuniyu@...zon.com,
wuyun.abel@...edance.com,
leitao@...ian.org,
alexander@...alicyn.com,
dhowells@...hat.com,
netdev@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
zhanjun@...ontech.com,
gouhaojake@....com
Subject: [PATCH 1/2] net/core: remove redundant sk_callback_lock initialization
sk_callback_lock has already been initialized in sk_init_common().
Signed-off-by: Gou Hao <gouhao@...ontech.com>
---
net/core/sock.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/net/core/sock.c b/net/core/sock.c
index 8629f9aecf91..67b10954e0cf 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -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,
--
2.20.1
Powered by blists - more mailing lists