diff options
| author | Gou Hao <[email protected]> | 2024-05-26 14:57:17 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-05-28 11:29:36 +0000 |
| commit | c65b6521115ed478471bf8c4a3687059fcea01aa (patch) | |
| tree | 9fa06455b506dd1bdc5db4a8f6abdba9be4c4a39 /net/core/sock.c | |
| parent | mISDN: remove unused struct 'bf_ctx' (diff) | |
| download | kernel-c65b6521115ed478471bf8c4a3687059fcea01aa.tar.gz kernel-c65b6521115ed478471bf8c4a3687059fcea01aa.zip | |
net/core: remove redundant sk_callback_lock initialization
sk_callback_lock has already been initialized in sk_init_common().
Signed-off-by: Gou Hao <[email protected]>
Reviewed-by: Breno Leitao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/core/sock.c')
| -rw-r--r-- | net/core/sock.c | 1 |
1 files changed, 0 insertions, 1 deletions
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, |
