crypto: seqiv - Remove unused alg/spawn variable
authorCorentin Labbe <clabbe@baylibre.com>
Tue, 12 Dec 2017 19:30:14 +0000 (19:30 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Dec 2017 08:52:45 +0000 (19:52 +1100)
This patch remove two unused variable and some dead "code" using it.

Fixes: 92932d03c2b3 ("crypto: seqiv - Remove AEAD compatibility code")

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/seqiv.c

index 570b7d1aa0cac1a61662827c5647ac4358129c00..39dbf2f7e5f5cd0d123665bdee0897b9ede49a58 100644 (file)
@@ -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;