diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2017-12-12 14:30:13 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-12-22 03:52:45 -0500 |
commit | 1f83f4d15d285689176a825c298e9e1c95c90a20 (patch) | |
tree | 9ae99326826cfab51bb44afa90eef9245515ac48 /crypto/echainiv.c | |
parent | 25cf7f06af2264d240c91255bb9c6082d98cc73e (diff) |
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/echainiv.c')
-rw-r--r-- | crypto/echainiv.c | 5 |
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, | |||
118 | struct rtattr **tb) | 118 | struct rtattr **tb) |
119 | { | 119 | { |
120 | struct aead_instance *inst; | 120 | struct aead_instance *inst; |
121 | struct crypto_aead_spawn *spawn; | ||
122 | struct aead_alg *alg; | ||
123 | int err; | 121 | int err; |
124 | 122 | ||
125 | inst = aead_geniv_alloc(tmpl, tb, 0, 0); | 123 | inst = aead_geniv_alloc(tmpl, tb, 0, 0); |
@@ -127,9 +125,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl, | |||
127 | if (IS_ERR(inst)) | 125 | if (IS_ERR(inst)) |
128 | return PTR_ERR(inst); | 126 | return PTR_ERR(inst); |
129 | 127 | ||
130 | spawn = aead_instance_ctx(inst); | ||
131 | alg = crypto_spawn_aead_alg(spawn); | ||
132 | |||
133 | err = -EINVAL; | 128 | err = -EINVAL; |
134 | if (inst->alg.ivsize & (sizeof(u64) - 1) || !inst->alg.ivsize) | 129 | if (inst->alg.ivsize & (sizeof(u64) - 1) || !inst->alg.ivsize) |
135 | goto free_inst; | 130 | goto free_inst; |