Skip to content

Commit

Permalink
crypto: tegra - remove redundant error check on ret
Browse files Browse the repository at this point in the history
[ Upstream commit 7b90df7 ]

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>
Stable-dep-of: 1ddaff4 ("crypto: tegra - Fix IV usage for AES ECB")
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Colin Ian King authored and Greg Kroah-Hartman committed Apr 25, 2025
1 parent 23fde31 commit 28ec10e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/crypto/tegra/tegra-se-aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,8 +1183,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);
Expand Down

0 comments on commit 28ec10e

Please sign in to comment.