summaryrefslogtreecommitdiffstats
path: root/crypto
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
commit1f83f4d15d285689176a825c298e9e1c95c90a20 (patch)
tree9ae99326826cfab51bb44afa90eef9245515ac48 /crypto
parent25cf7f06af2264d240c91255bb9c6082d98cc73e (diff)
downloadlinux-1f83f4d15d285689176a825c298e9e1c95c90a20.tar.gz
linux-1f83f4d15d285689176a825c298e9e1c95c90a20.tar.bz2
linux-1f83f4d15d285689176a825c298e9e1c95c90a20.zip
crypto: echainiv - Remove unused alg/spawn variable
This patch remove two unused variable and some dead "code" using it. Fixes: 66008d4230f6 ("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')
-rw-r--r--crypto/echainiv.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/echainiv.c b/crypto/echainiv.c
index e3d889b122e0..45819e6015bf 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;