From: Geliang Tang <tanggeliang@kylinos.cn>
No need to init copied to zero.
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
---
net/mptcp/protocol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
index 068ec724e081..924b4d5bd1af 100644
--- a/net/mptcp/protocol.c
+++ b/net/mptcp/protocol.c
@@ -3997,7 +3997,7 @@ static int mptcp_read_sock(struct sock *sk, read_descriptor_t *desc,
struct scm_timestamping_internal tss;
int flags = 0, cmsg_flags = 0;
size_t len = sk->sk_rcvbuf;
- int copied = 0;
+ int copied;
if (sk->sk_state == TCP_LISTEN)
return -ENOTCONN;
--
2.48.1