crypto: inside-secure - remove unused parameter in invalidate_cache
authorOfer Heifetz <oferh@marvell.com>
Thu, 14 Dec 2017 14:26:50 +0000 (15:26 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Dec 2017 09:03:31 +0000 (20:03 +1100)
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>
drivers/crypto/inside-secure/safexcel.c
drivers/crypto/inside-secure/safexcel.h
drivers/crypto/inside-secure/safexcel_cipher.c
drivers/crypto/inside-secure/safexcel_hash.c

index 4bcef78a08aad241675e50d959aff2a6c58e126b..f250c3c1ab0f1e20de05986181a88395817abfd3 100644 (file)
@@ -540,7 +540,6 @@ void safexcel_inv_complete(struct crypto_async_request *req, int error)
 }
 
 int safexcel_invalidate_cache(struct crypto_async_request *async,
-                             struct safexcel_context *ctx,
                              struct safexcel_crypto_priv *priv,
                              dma_addr_t ctxr_dma, int ring,
                              struct safexcel_request *request)
index 304c5838c11a0e2e0e012148f98ef777630c7f6c..d12c2b479a5e0454c59ff20447ff96477a231a6e 100644 (file)
@@ -539,7 +539,6 @@ void safexcel_free_context(struct safexcel_crypto_priv *priv,
                                  struct crypto_async_request *req,
                                  int result_sz);
 int safexcel_invalidate_cache(struct crypto_async_request *async,
-                             struct safexcel_context *ctx,
                              struct safexcel_crypto_priv *priv,
                              dma_addr_t ctxr_dma, int ring,
                              struct safexcel_request *request);
index 62382a7c4cbed37b7cec69aae6682030c56ee9d2..fe1d588d6a256bf665c7098c7566bd6bcab8f8f7 100644 (file)
@@ -395,7 +395,7 @@ static int safexcel_cipher_send_inv(struct crypto_async_request *async,
        struct safexcel_crypto_priv *priv = ctx->priv;
        int ret;
 
-       ret = safexcel_invalidate_cache(async, &ctx->base, priv,
+       ret = safexcel_invalidate_cache(async, priv,
                                        ctx->base.ctxr_dma, ring, request);
        if (unlikely(ret))
                return ret;
index 4a4d95302a93cf0c23d5114bcf911ce41937dbd5..d233f4a0971239dfe8128510c395236209d98a09 100644 (file)
@@ -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));
        int ret;
 
-       ret = safexcel_invalidate_cache(async, &ctx->base, ctx->priv,
+       ret = safexcel_invalidate_cache(async, ctx->priv,
                                        ctx->base.ctxr_dma, ring, request);
        if (unlikely(ret))
                return ret;