diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2026-03-31 11:36:29 +0300 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2026-04-12 11:47:09 +0300 |
| commit | 2418431211d5d348245a79b41cf0cb89bcadc27b (patch) | |
| tree | 3cd76d2e27d266fe5366a3a811134a063d320987 | |
| parent | 3787fb7697a942baa25361bfc3390575e5659db8 (diff) | |
| download | linux-2418431211d5d348245a79b41cf0cb89bcadc27b.tar.xz | |
crypto: geniv - Remove unused spinlock from struct aead_geniv_ctx
The spin lock in geniv hasn't been used in over 10 years. Remove it.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
| -rw-r--r-- | crypto/geniv.c | 2 | ||||
| -rw-r--r-- | include/crypto/internal/geniv.h | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/crypto/geniv.c b/crypto/geniv.c index c619a5ad2fc1..04befe3a7f44 100644 --- a/crypto/geniv.c +++ b/crypto/geniv.c @@ -112,8 +112,6 @@ int aead_init_geniv(struct crypto_aead *aead) struct crypto_aead *child; int err; - spin_lock_init(&ctx->lock); - err = crypto_stdrng_get_bytes(ctx->salt, crypto_aead_ivsize(aead)); if (err) goto out; diff --git a/include/crypto/internal/geniv.h b/include/crypto/internal/geniv.h index 012f5fb22d43..e38d9f0487ec 100644 --- a/include/crypto/internal/geniv.h +++ b/include/crypto/internal/geniv.h @@ -9,11 +9,9 @@ #define _CRYPTO_INTERNAL_GENIV_H #include <crypto/internal/aead.h> -#include <linux/spinlock.h> #include <linux/types.h> struct aead_geniv_ctx { - spinlock_t lock; struct crypto_aead *child; u8 salt[] __attribute__ ((aligned(__alignof__(u32)))); }; |
