Skip to content

Commit 28ec10e

Browse files
ColinIanKinggregkh
authored andcommitted
crypto: tegra - remove redundant error check on ret
[ 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>
1 parent 23fde31 commit 28ec10e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/crypto/tegra/tegra-se-aes.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,8 +1183,6 @@ static int tegra_ccm_do_one_req(struct crypto_engine *engine, void *areq)
11831183
goto out;
11841184
} else {
11851185
rctx->cryptlen = req->cryptlen - ctx->authsize;
1186-
if (ret)
1187-
goto out;
11881186

11891187
/* CTR operation */
11901188
ret = tegra_ccm_do_ctr(ctx, rctx);

0 commit comments

Comments
 (0)