tls: rx: drop pointless else after goto
authorJakub Kicinski <kuba@kernel.org>
Fri, 8 Apr 2022 03:38:15 +0000 (20:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2022 10:49:07 +0000 (11:49 +0100)
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>
net/tls/tls_sw.c

index 6f943f0cba8a42b30caac4ef64c4cf477c6815a9..e2b9c55980e25f77f88c129f49aaaf560511ce10 100644 (file)
@@ -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;