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: Ofer Heifetz <oferh@marvell.com> [Antoine: commit message] Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Родитель
847ccfc586
Коммит
5290ad6e9a
|
@ -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,
|
||||||
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,
|
||||||
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,
|
||||||
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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче