summaryrefslogtreecommitdiff
path: root/crypto/echainiv.c
diff options
context:
space:
mode:
authorCorentin Labbe <clabbe@baylibre.com>2017-12-12 19:30:13 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2017-12-22 19:52:45 +1100
commitf597ef6fc8a700949cb97ec18047ec574c5e37fb (patch)
treefaae536984315f3a37eb4c8fd9f774123c50dbfe /crypto/echainiv.c
parentc978bed923f63894981d038e014e273a60a6b8c5 (diff)
downloadlinux-crypto-f597ef6fc8a700949cb97ec18047ec574c5e37fb.tar.gz
linux-crypto-f597ef6fc8a700949cb97ec18047ec574c5e37fb.zip
crypto: echainiv - Remove unused alg/spawn variable
This patch remove two unused variable and some dead "code" using it. Fixes: 52a08691eb96 ("crypto: echainiv - 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 'crypto/echainiv.c')
-rw-r--r--crypto/echainiv.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/echainiv.c b/crypto/echainiv.c
index e3d889b1..45819e60 100644
--- a/crypto/echainiv.c
+++ b/crypto/echainiv.c
@@ -118,8 +118,6 @@ static int echainiv_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);
@@ -127,9 +125,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl,
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) - 1) || !inst->alg.ivsize)
goto free_inst;