summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2024-10-15 14:11:22 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2024-10-28 18:33:09 +0800
commit7b90df78184de90fe5afcc45393c8ad83b5b18a1 (patch)
tree389008468fb4d89876c84300a19ff4d2e48b55fe /drivers/crypto
parent69b062072739404f403bab2710b770919ce2f1ce (diff)
crypto: tegra - remove redundant error check on ret
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>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/tegra/tegra-se-aes.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/crypto/tegra/tegra-se-aes.c b/drivers/crypto/tegra/tegra-se-aes.c
index ae7a0f8435fc..9d130592cc0a 100644
--- a/drivers/crypto/tegra/tegra-se-aes.c
+++ b/drivers/crypto/tegra/tegra-se-aes.c
@@ -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);