crypto: tegra - remove redundant error check on ret
authorColin Ian King <colin.i.king@gmail.com>
Tue, 15 Oct 2024 13:11:22 +0000 (14:11 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Oct 2024 10:33:09 +0000 (18:33 +0800)
Currently there is an unnecessary error check on ret without a proceeding
assignment to ret that needs checking. The check is redundant and can be
removed.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Acked-by: Akhil R <akhilrajeev@nvidia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/tegra/tegra-se-aes.c

index ae7a0f8..9d13059 100644 (file)
@@ -1180,8 +1180,6 @@ static int tegra_ccm_do_one_req(struct crypto_engine *engine, void *areq)
                        goto out;
        } else {
                rctx->cryptlen = req->cryptlen - ctx->authsize;
-               if (ret)
-                       goto out;
 
                /* CTR operation */
                ret = tegra_ccm_do_ctr(ctx, rctx);