crypto: tegra - remove redundant error check on ret
[ Upstream commit 7b90df78184de90fe5afcc45393c8ad83b5b18a1 ] 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: 1ddaff40c08a ("crypto: tegra - Fix IV usage for AES ECB") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
23fde311ea
commit
28ec10e58d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user