crypto: echainiv - Remove unused alg/spawn variable

This patch remove two unused variable and some dead "code" using it.

Fixes: 66008d4230 ("crypto: echainiv - Remove AEAD compatibility code")
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Corentin Labbe 2017-12-12 19:30:13 +00:00 коммит произвёл Herbert Xu
Родитель 25cf7f06af
Коммит 1f83f4d15d
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -118,8 +118,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl,
struct rtattr **tb) struct rtattr **tb)
{ {
struct aead_instance *inst; struct aead_instance *inst;
struct crypto_aead_spawn *spawn;
struct aead_alg *alg;
int err; int err;
inst = aead_geniv_alloc(tmpl, tb, 0, 0); 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)) if (IS_ERR(inst))
return PTR_ERR(inst); return PTR_ERR(inst);
spawn = aead_instance_ctx(inst);
alg = crypto_spawn_aead_alg(spawn);
err = -EINVAL; err = -EINVAL;
if (inst->alg.ivsize & (sizeof(u64) - 1) || !inst->alg.ivsize) if (inst->alg.ivsize & (sizeof(u64) - 1) || !inst->alg.ivsize)
goto free_inst; goto free_inst;