diff mbox series

crypto: ccp - Remove unused struct ccp_crypto_cpu

Message ID 20220927133955.104353-1-yuancan@huawei.com (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show
Series crypto: ccp - Remove unused struct ccp_crypto_cpu | expand

Commit Message

Yuan Can Sept. 27, 2022, 1:39 p.m. UTC
After commit bc3854476f36("crypto: ccp - Use a single queue for proper ordering
of tfm requests"), no one use struct ccp_crypto_cpu, so remove it.

Signed-off-by: Yuan Can <yuancan@huawei.com>
---
 drivers/crypto/ccp/ccp-crypto-main.c | 7 -------
 1 file changed, 7 deletions(-)

Comments

John Allen Sept. 27, 2022, 3:47 p.m. UTC | #1
On 9/27/22 8:39 AM, Yuan Can wrote:
> After commit bc3854476f36("crypto: ccp - Use a single queue for proper ordering
> of tfm requests"), no one use struct ccp_crypto_cpu, so remove it.
> 
> Signed-off-by: Yuan Can <yuancan@huawei.com>

Acked-by: John Allen <john.allen@amd.com>

> ---
>   drivers/crypto/ccp/ccp-crypto-main.c | 7 -------
>   1 file changed, 7 deletions(-)
> 
> diff --git a/drivers/crypto/ccp/ccp-crypto-main.c b/drivers/crypto/ccp/ccp-crypto-main.c
> index 5976530c00a8..c8f3345c66e2 100644
> --- a/drivers/crypto/ccp/ccp-crypto-main.c
> +++ b/drivers/crypto/ccp/ccp-crypto-main.c
> @@ -78,13 +78,6 @@ struct ccp_crypto_cmd {
>   	int ret;
>   };
>   
> -struct ccp_crypto_cpu {
> -	struct work_struct work;
> -	struct completion completion;
> -	struct ccp_crypto_cmd *crypto_cmd;
> -	int err;
> -};
> -
>   static inline bool ccp_crypto_success(int err)
>   {
>   	if (err && (err != -EINPROGRESS) && (err != -EBUSY))
Herbert Xu Oct. 21, 2022, 11:34 a.m. UTC | #2
On Tue, Sep 27, 2022 at 01:39:55PM +0000, Yuan Can wrote:
> After commit bc3854476f36("crypto: ccp - Use a single queue for proper ordering
> of tfm requests"), no one use struct ccp_crypto_cpu, so remove it.
> 
> Signed-off-by: Yuan Can <yuancan@huawei.com>
> ---
>  drivers/crypto/ccp/ccp-crypto-main.c | 7 -------
>  1 file changed, 7 deletions(-)

Patch applied.  Thanks.
diff mbox series

Patch

diff --git a/drivers/crypto/ccp/ccp-crypto-main.c b/drivers/crypto/ccp/ccp-crypto-main.c
index 5976530c00a8..c8f3345c66e2 100644
--- a/drivers/crypto/ccp/ccp-crypto-main.c
+++ b/drivers/crypto/ccp/ccp-crypto-main.c
@@ -78,13 +78,6 @@  struct ccp_crypto_cmd {
 	int ret;
 };
 
-struct ccp_crypto_cpu {
-	struct work_struct work;
-	struct completion completion;
-	struct ccp_crypto_cmd *crypto_cmd;
-	int err;
-};
-
 static inline bool ccp_crypto_success(int err)
 {
 	if (err && (err != -EINPROGRESS) && (err != -EBUSY))