mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
tls: rx: drop pointless else after goto
Pointless else branch after goto makes the code harder to refactor down the line. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bfc06e1aaa
commit
d5123edd10
@ -1789,10 +1789,9 @@ int tls_sw_recvmsg(struct sock *sk,
|
||||
if (err < 0) {
|
||||
tls_err_abort(sk, err);
|
||||
goto end;
|
||||
} else {
|
||||
copied = err;
|
||||
}
|
||||
|
||||
copied = err;
|
||||
if (len <= copied)
|
||||
goto end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user