Commit 0775639c authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

tls: rx: reuse leave_on_list label for psock

The code is identical, we can save a few LoC.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a30295c4
......@@ -1775,14 +1775,10 @@ int tls_sw_recvmsg(struct sock *sk,
skb = tls_wait_data(sk, psock, flags & MSG_DONTWAIT, timeo, &err);
if (!skb) {
if (psock) {
int ret = sk_msg_recvmsg(sk, psock, msg, len,
chunk = sk_msg_recvmsg(sk, psock, msg, len,
flags);
if (ret > 0) {
decrypted += ret;
len -= ret;
continue;
}
if (chunk > 0)
goto leave_on_list;
}
goto recv_end;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment