summaryrefslogtreecommitdiff
path: root/crypto/seqiv.c
diff options
context:
space:
mode:
authorCorentin Labbe <clabbe@baylibre.com>2017-12-12 19:30:14 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2017-12-22 19:52:45 +1100
commit85d35da5374413041093f5bcb0c352ef9bbe7a5b (patch)
treef8a8df7298c59d7c46a353123408a60afd7f6309 /crypto/seqiv.c
parentf597ef6fc8a700949cb97ec18047ec574c5e37fb (diff)
downloadlinux-crypto-85d35da5374413041093f5bcb0c352ef9bbe7a5b.tar.gz
linux-crypto-85d35da5374413041093f5bcb0c352ef9bbe7a5b.zip
crypto: seqiv - Remove unused alg/spawn variable
This patch remove two unused variable and some dead "code" using it. Fixes: 404f1f40cac0 ("crypto: seqiv - Remove AEAD compatibility code") Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--crypto/seqiv.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/seqiv.c b/crypto/seqiv.c
index 570b7d1a..39dbf2f7 100644
--- a/crypto/seqiv.c
+++ b/crypto/seqiv.c
@@ -144,8 +144,6 @@ static int seqiv_aead_decrypt(struct aead_request *req)
static int seqiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb)
{
struct aead_instance *inst;
- struct crypto_aead_spawn *spawn;
- struct aead_alg *alg;
int err;
inst = aead_geniv_alloc(tmpl, tb, 0, 0);
@@ -153,9 +151,6 @@ static int seqiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb)
if (IS_ERR(inst))
return PTR_ERR(inst);
- spawn = aead_instance_ctx(inst);
- alg = crypto_spawn_aead_alg(spawn);
-
err = -EINVAL;
if (inst->alg.ivsize != sizeof(u64))
goto free_inst;