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>
This commit is contained in:
committed by
Herbert Xu
parent
69b0620727
commit
7b90df7818
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user