Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

-4
-2
crypto/geniv.c
··· 112 112 struct crypto_aead *child; 113 113 int err; 114 114 115 - spin_lock_init(&ctx->lock); 116 - 117 115 err = crypto_stdrng_get_bytes(ctx->salt, crypto_aead_ivsize(aead)); 118 116 if (err) 119 117 goto out;
-2
include/crypto/internal/geniv.h
··· 9 9 #define _CRYPTO_INTERNAL_GENIV_H 10 10 11 11 #include <crypto/internal/aead.h> 12 - #include <linux/spinlock.h> 13 12 #include <linux/types.h> 14 13 15 14 struct aead_geniv_ctx { 16 - spinlock_t lock; 17 15 struct crypto_aead *child; 18 16 u8 salt[] __attribute__ ((aligned(__alignof__(u32)))); 19 17 };