diff options
author | Horia Geantă <horia.geanta@nxp.com> | 2017-11-01 03:13:11 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-11-06 01:45:01 -0500 |
commit | dfcd8393efefb7a111f9cb6af69058ecaf4a4d72 (patch) | |
tree | f6965fc254838ea4e7352669005b2efafe9c0a9b /drivers | |
parent | f2ac67746534fab0cbc0bc29bfc3e507b1f58474 (diff) |
crypto: caam - remove unused param of ctx_map_to_sec4_sg()
ctx_map_to_sec4_sg() function, added in
commit 045e36780f115 ("crypto: caam - ahash hmac support")
has never used the "desc" parameter, so let's drop it.
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/caam/caamhash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/crypto/caam/caamhash.c b/drivers/crypto/caam/caamhash.c index 7b1167437b88..616720a04e7a 100644 --- a/drivers/crypto/caam/caamhash.c +++ b/drivers/crypto/caam/caamhash.c | |||
@@ -218,7 +218,7 @@ static inline int buf_map_to_sec4_sg(struct device *jrdev, | |||
218 | } | 218 | } |
219 | 219 | ||
220 | /* Map state->caam_ctx, and add it to link table */ | 220 | /* Map state->caam_ctx, and add it to link table */ |
221 | static inline int ctx_map_to_sec4_sg(u32 *desc, struct device *jrdev, | 221 | static inline int ctx_map_to_sec4_sg(struct device *jrdev, |
222 | struct caam_hash_state *state, int ctx_len, | 222 | struct caam_hash_state *state, int ctx_len, |
223 | struct sec4_sg_entry *sec4_sg, u32 flag) | 223 | struct sec4_sg_entry *sec4_sg, u32 flag) |
224 | { | 224 | { |
@@ -773,7 +773,7 @@ static int ahash_update_ctx(struct ahash_request *req) | |||
773 | edesc->src_nents = src_nents; | 773 | edesc->src_nents = src_nents; |
774 | edesc->sec4_sg_bytes = sec4_sg_bytes; | 774 | edesc->sec4_sg_bytes = sec4_sg_bytes; |
775 | 775 | ||
776 | ret = ctx_map_to_sec4_sg(desc, jrdev, state, ctx->ctx_len, | 776 | ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, |
777 | edesc->sec4_sg, DMA_BIDIRECTIONAL); | 777 | edesc->sec4_sg, DMA_BIDIRECTIONAL); |
778 | if (ret) | 778 | if (ret) |
779 | goto unmap_ctx; | 779 | goto unmap_ctx; |
@@ -872,7 +872,7 @@ static int ahash_final_ctx(struct ahash_request *req) | |||
872 | 872 | ||
873 | edesc->sec4_sg_bytes = sec4_sg_bytes; | 873 | edesc->sec4_sg_bytes = sec4_sg_bytes; |
874 | 874 | ||
875 | ret = ctx_map_to_sec4_sg(desc, jrdev, state, ctx->ctx_len, | 875 | ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, |
876 | edesc->sec4_sg, DMA_TO_DEVICE); | 876 | edesc->sec4_sg, DMA_TO_DEVICE); |
877 | if (ret) | 877 | if (ret) |
878 | goto unmap_ctx; | 878 | goto unmap_ctx; |
@@ -966,7 +966,7 @@ static int ahash_finup_ctx(struct ahash_request *req) | |||
966 | 966 | ||
967 | edesc->src_nents = src_nents; | 967 | edesc->src_nents = src_nents; |
968 | 968 | ||
969 | ret = ctx_map_to_sec4_sg(desc, jrdev, state, ctx->ctx_len, | 969 | ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, |
970 | edesc->sec4_sg, DMA_TO_DEVICE); | 970 | edesc->sec4_sg, DMA_TO_DEVICE); |
971 | if (ret) | 971 | if (ret) |
972 | goto unmap_ctx; | 972 | goto unmap_ctx; |