diff mbox series

[2/2] crypto: user: remove crypto_cfg_mutex

Message ID 20190211110251.17377-2-bigeasy@linutronix.de (mailing list archive)
State Not Applicable
Delegated to: Herbert Xu
Headers show
Series [1/2] crypto: chtls: remove cdev_list_lock | expand

Commit Message

Sebastian Andrzej Siewior Feb. 11, 2019, 11:02 a.m. UTC
crypto_cfg_mutex was never used since it got introduced in commit

  cac5818c25d04 ("crypto: user - Implement a generic crypto statistics")

Cc: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 crypto/crypto_user_stat.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Eric Biggers Feb. 11, 2019, 9:22 p.m. UTC | #1
On Mon, Feb 11, 2019 at 12:02:51PM +0100, Sebastian Andrzej Siewior wrote:
> crypto_cfg_mutex was never used since it got introduced in commit
> 
>   cac5818c25d04 ("crypto: user - Implement a generic crypto statistics")
> 
> Cc: Corentin Labbe <clabbe@baylibre.com>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
>  crypto/crypto_user_stat.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/crypto/crypto_user_stat.c b/crypto/crypto_user_stat.c
> index 3e9a53233d804..028be6a1ea781 100644
> --- a/crypto/crypto_user_stat.c
> +++ b/crypto/crypto_user_stat.c
> @@ -20,8 +20,6 @@
>  
>  #define null_terminated(x)	(strnlen(x, sizeof(x)) < sizeof(x))
>  
> -static DEFINE_MUTEX(crypto_cfg_mutex);
> -
>  extern struct sock *crypto_nlsk;
>  
>  struct crypto_dump_info {
> -- 
> 2.20.1
> 

Hi Sebastian, this is already removed by a patch queued in cryptodev:
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=554557ce0001fc0371fb88db53d7dfe2a398c6de

- Eric
diff mbox series

Patch

diff --git a/crypto/crypto_user_stat.c b/crypto/crypto_user_stat.c
index 3e9a53233d804..028be6a1ea781 100644
--- a/crypto/crypto_user_stat.c
+++ b/crypto/crypto_user_stat.c
@@ -20,8 +20,6 @@ 
 
 #define null_terminated(x)	(strnlen(x, sizeof(x)) < sizeof(x))
 
-static DEFINE_MUTEX(crypto_cfg_mutex);
-
 extern struct sock *crypto_nlsk;
 
 struct crypto_dump_info {