Commit dfcd8393 authored by Horia Geantă's avatar Horia Geantă Committed by Herbert Xu

crypto: caam - remove unused param of ctx_map_to_sec4_sg()

ctx_map_to_sec4_sg() function, added in
commit 045e3678 ("crypto: caam - ahash hmac support")
has never used the "desc" parameter, so let's drop it.
Signed-off-by: default avatarHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent f2ac6774
...@@ -218,7 +218,7 @@ static inline int buf_map_to_sec4_sg(struct device *jrdev, ...@@ -218,7 +218,7 @@ static inline int buf_map_to_sec4_sg(struct device *jrdev,
} }
/* Map state->caam_ctx, and add it to link table */ /* Map state->caam_ctx, and add it to link table */
static inline int ctx_map_to_sec4_sg(u32 *desc, struct device *jrdev, static inline int ctx_map_to_sec4_sg(struct device *jrdev,
struct caam_hash_state *state, int ctx_len, struct caam_hash_state *state, int ctx_len,
struct sec4_sg_entry *sec4_sg, u32 flag) struct sec4_sg_entry *sec4_sg, u32 flag)
{ {
...@@ -773,7 +773,7 @@ static int ahash_update_ctx(struct ahash_request *req) ...@@ -773,7 +773,7 @@ static int ahash_update_ctx(struct ahash_request *req)
edesc->src_nents = src_nents; edesc->src_nents = src_nents;
edesc->sec4_sg_bytes = sec4_sg_bytes; edesc->sec4_sg_bytes = sec4_sg_bytes;
ret = ctx_map_to_sec4_sg(desc, jrdev, state, ctx->ctx_len, ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len,
edesc->sec4_sg, DMA_BIDIRECTIONAL); edesc->sec4_sg, DMA_BIDIRECTIONAL);
if (ret) if (ret)
goto unmap_ctx; goto unmap_ctx;
...@@ -872,7 +872,7 @@ static int ahash_final_ctx(struct ahash_request *req) ...@@ -872,7 +872,7 @@ static int ahash_final_ctx(struct ahash_request *req)
edesc->sec4_sg_bytes = sec4_sg_bytes; edesc->sec4_sg_bytes = sec4_sg_bytes;
ret = ctx_map_to_sec4_sg(desc, jrdev, state, ctx->ctx_len, ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len,
edesc->sec4_sg, DMA_TO_DEVICE); edesc->sec4_sg, DMA_TO_DEVICE);
if (ret) if (ret)
goto unmap_ctx; goto unmap_ctx;
...@@ -966,7 +966,7 @@ static int ahash_finup_ctx(struct ahash_request *req) ...@@ -966,7 +966,7 @@ static int ahash_finup_ctx(struct ahash_request *req)
edesc->src_nents = src_nents; edesc->src_nents = src_nents;
ret = ctx_map_to_sec4_sg(desc, jrdev, state, ctx->ctx_len, ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len,
edesc->sec4_sg, DMA_TO_DEVICE); edesc->sec4_sg, DMA_TO_DEVICE);
if (ret) if (ret)
goto unmap_ctx; goto unmap_ctx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment