Commit 5290ad6e authored by Ofer Heifetz's avatar Ofer Heifetz Committed by Herbert Xu

crypto: inside-secure - remove unused parameter in invalidate_cache

The SafeXcel context isn't used in the cache invalidation function. This
cosmetic patch removes it (as well as from the function prototype in the
header file and when the function is called).
Signed-off-by: default avatarOfer Heifetz <oferh@marvell.com>
[Antoine: commit message]
Signed-off-by: default avatarAntoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 847ccfc5
...@@ -540,7 +540,6 @@ void safexcel_inv_complete(struct crypto_async_request *req, int error) ...@@ -540,7 +540,6 @@ void safexcel_inv_complete(struct crypto_async_request *req, int error)
} }
int safexcel_invalidate_cache(struct crypto_async_request *async, int safexcel_invalidate_cache(struct crypto_async_request *async,
struct safexcel_context *ctx,
struct safexcel_crypto_priv *priv, struct safexcel_crypto_priv *priv,
dma_addr_t ctxr_dma, int ring, dma_addr_t ctxr_dma, int ring,
struct safexcel_request *request) struct safexcel_request *request)
......
...@@ -539,7 +539,6 @@ void safexcel_free_context(struct safexcel_crypto_priv *priv, ...@@ -539,7 +539,6 @@ void safexcel_free_context(struct safexcel_crypto_priv *priv,
struct crypto_async_request *req, struct crypto_async_request *req,
int result_sz); int result_sz);
int safexcel_invalidate_cache(struct crypto_async_request *async, int safexcel_invalidate_cache(struct crypto_async_request *async,
struct safexcel_context *ctx,
struct safexcel_crypto_priv *priv, struct safexcel_crypto_priv *priv,
dma_addr_t ctxr_dma, int ring, dma_addr_t ctxr_dma, int ring,
struct safexcel_request *request); struct safexcel_request *request);
......
...@@ -395,7 +395,7 @@ static int safexcel_cipher_send_inv(struct crypto_async_request *async, ...@@ -395,7 +395,7 @@ static int safexcel_cipher_send_inv(struct crypto_async_request *async,
struct safexcel_crypto_priv *priv = ctx->priv; struct safexcel_crypto_priv *priv = ctx->priv;
int ret; int ret;
ret = safexcel_invalidate_cache(async, &ctx->base, priv, ret = safexcel_invalidate_cache(async, priv,
ctx->base.ctxr_dma, ring, request); ctx->base.ctxr_dma, ring, request);
if (unlikely(ret)) if (unlikely(ret))
return ret; return ret;
......
...@@ -417,7 +417,7 @@ static int safexcel_ahash_send_inv(struct crypto_async_request *async, ...@@ -417,7 +417,7 @@ static int safexcel_ahash_send_inv(struct crypto_async_request *async,
struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(crypto_ahash_reqtfm(areq)); struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(crypto_ahash_reqtfm(areq));
int ret; int ret;
ret = safexcel_invalidate_cache(async, &ctx->base, ctx->priv, ret = safexcel_invalidate_cache(async, ctx->priv,
ctx->base.ctxr_dma, ring, request); ctx->base.ctxr_dma, ring, request);
if (unlikely(ret)) if (unlikely(ret))
return ret; return ret;
......
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