Skip to content

Commit 2418431

Browse files
committed
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>
1 parent 3787fb7 commit 2418431

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

crypto/geniv.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ int aead_init_geniv(struct crypto_aead *aead)
112112
struct crypto_aead *child;
113113
int err;
114114

115-
spin_lock_init(&ctx->lock);
116-
117115
err = crypto_stdrng_get_bytes(ctx->salt, crypto_aead_ivsize(aead));
118116
if (err)
119117
goto out;

include/crypto/internal/geniv.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
#define _CRYPTO_INTERNAL_GENIV_H
1010

1111
#include <crypto/internal/aead.h>
12-
#include <linux/spinlock.h>
1312
#include <linux/types.h>
1413

1514
struct aead_geniv_ctx {
16-
spinlock_t lock;
1715
struct crypto_aead *child;
1816
u8 salt[] __attribute__ ((aligned(__alignof__(u32))));
1917
};

0 commit comments

Comments
 (0)