tls: rx: drop pointless else after goto
[ Upstream commit d5123edd10cf9d324fcb88e276bdc7375f3c5321 ] 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> Stable-dep-of: fdfbaec5923d ("tls: stop recv() if initial process_rx_list gave us non-DATA") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ef74da8d1a
commit
59f7a791dc
1 changed files with 1 additions and 2 deletions
|
@ -1783,10 +1783,9 @@ int tls_sw_recvmsg(struct sock *sk,
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
tls_err_abort(sk, err);
|
tls_err_abort(sk, err);
|
||||||
goto end;
|
goto end;
|
||||||
} else {
|
|
||||||
copied = err;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
copied = err;
|
||||||
if (len <= copied)
|
if (len <= copied)
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue