From: Herbert Xu Date: Tue, 31 Mar 2026 08:36:29 +0000 (+0900) Subject: crypto: geniv - Remove unused spinlock from struct aead_geniv_ctx X-Git-Tag: v7.1-rc1~145^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2418431211d5d348245a79b41cf0cb89bcadc27b;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/crypto/geniv.c b/crypto/geniv.c index c619a5ad2fc18..04befe3a7f44c 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 012f5fb22d43f..e38d9f0487ec9 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)))); };