aboutsummaryrefslogtreecommitdiff
path: root/net/tls/tls_sw.c
diff options
context:
space:
mode:
authorJakub Kicinski2022-04-07 20:38:15 -0700
committerDavid S. Miller2022-04-08 11:49:07 +0100
commitd5123edd10cf9d324fcb88e276bdc7375f3c5321 (patch)
treefaac5f4ee587a057cea6b6711b321c2b6650a1d2 /net/tls/tls_sw.c
parentbfc06e1aaa130b86a81ce3c41ec71a2f5e191690 (diff)
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>
Diffstat (limited to 'net/tls/tls_sw.c')
-rw-r--r--net/tls/tls_sw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c
index 6f943f0cba8a..e2b9c55980e2 100644
--- a/net/tls/tls_sw.c
+++ b/net/tls/tls_sw.c
@@ -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;