crypto: caam - remove redundant likely/unlikely annotation
unlikely has already included in IS_ERR(), so just remove redundant likely/unlikely annotation. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:

committed by
Herbert Xu

parent
e8e3c1ca57
commit
867659c637
@@ -782,7 +782,7 @@ static struct caam_drv_ctx *get_drv_ctx(struct caam_ctx *ctx,
|
||||
|
||||
cpu = smp_processor_id();
|
||||
drv_ctx = caam_drv_ctx_init(ctx->qidev, &cpu, desc);
|
||||
if (likely(!IS_ERR_OR_NULL(drv_ctx)))
|
||||
if (!IS_ERR_OR_NULL(drv_ctx))
|
||||
drv_ctx->op_type = type;
|
||||
|
||||
ctx->drv_ctx[type] = drv_ctx;
|
||||
@@ -893,7 +893,7 @@ static struct aead_edesc *aead_edesc_alloc(struct aead_request *req,
|
||||
struct caam_drv_ctx *drv_ctx;
|
||||
|
||||
drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT);
|
||||
if (unlikely(IS_ERR_OR_NULL(drv_ctx)))
|
||||
if (IS_ERR_OR_NULL(drv_ctx))
|
||||
return (struct aead_edesc *)drv_ctx;
|
||||
|
||||
/* allocate space for base edesc and hw desc commands, link tables */
|
||||
@@ -1191,7 +1191,7 @@ static struct skcipher_edesc *skcipher_edesc_alloc(struct skcipher_request *req,
|
||||
struct caam_drv_ctx *drv_ctx;
|
||||
|
||||
drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT);
|
||||
if (unlikely(IS_ERR_OR_NULL(drv_ctx)))
|
||||
if (IS_ERR_OR_NULL(drv_ctx))
|
||||
return (struct skcipher_edesc *)drv_ctx;
|
||||
|
||||
src_nents = sg_nents_for_len(req->src, req->cryptlen);
|
||||
|
Reference in New Issue
Block a user