From 2418431211d5d348245a79b41cf0cb89bcadc27b Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Tue, 31 Mar 2026 17:36:29 +0900 Subject: [PATCH] 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 --- crypto/geniv.c | 2 -- include/crypto/internal/geniv.h | 2 -- 2 files changed, 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 -#include #include struct aead_geniv_ctx { - spinlock_t lock; struct crypto_aead *child; u8 salt[] __attribute__ ((aligned(__alignof__(u32)))); };