From: Jakub Kicinski Date: Fri, 8 Apr 2022 03:38:15 +0000 (-0700) Subject: tls: rx: drop pointless else after goto X-Git-Tag: v6.6.17~7459^2~371^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5123edd10cf9d324fcb88e276bdc7375f3c5321;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- 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;