mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-25 15:13:35 +00:00
tls: Remove dead code in tls_sw_sendmsg
tls_push_record either returns 0 on success or a negative value on failure. This patch removes code that would only be executed if tls_push_record were to return a positive value. Signed-off-by: Doron Roberts-Kedes <doronrk@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
37b81dc5ed
commit
5a3611efe5
@ -423,12 +423,10 @@ alloc_encrypted:
|
||||
|
||||
copied += try_to_copy;
|
||||
ret = tls_push_record(sk, msg->msg_flags, record_type);
|
||||
if (!ret)
|
||||
continue;
|
||||
if (ret < 0)
|
||||
if (ret)
|
||||
goto send_end;
|
||||
continue;
|
||||
|
||||
copied -= try_to_copy;
|
||||
fallback_to_reg_send:
|
||||
iov_iter_revert(&msg->msg_iter,
|
||||
ctx->sg_plaintext_size - orig_size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user