]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: geniv - Remove unused spinlock from struct aead_geniv_ctx
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 31 Mar 2026 08:36:29 +0000 (17:36 +0900)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 12 Apr 2026 08:47:09 +0000 (16:47 +0800)
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>
crypto/geniv.c
include/crypto/internal/geniv.h

index c619a5ad2fc18f490f8e0808d053489274cb47ac..04befe3a7f44cb1ef3f65fadc12c3ef90d8edefc 100644 (file)
@@ -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;
index 012f5fb22d43f18a186ffe11cc6745cd019289fb..e38d9f0487ec9bc7f47dad55e9c024cc16be27c3 100644 (file)
@@ -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))));
 };