crypto: echainiv - Remove AEAD compatibility code
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Aug 2015 09:28:56 +0000 (17:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 17 Aug 2015 08:53:43 +0000 (16:53 +0800)
Now that we no longer have any legacy AEAD implementations the
compatibility code path can no longer be triggered.  This patch
removes it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/echainiv.c

index d3896c7e634be28f27864593b2f0eeff9ba34211..806ebe73cb64b5df3f22902806b67ce26907da7e 100644 (file)
@@ -247,9 +247,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl,
        spawn = aead_instance_ctx(inst);
        alg = crypto_spawn_aead_alg(spawn);
 
-       if (alg->base.cra_aead.encrypt)
-               goto done;
-
        err = -EINVAL;
        if (inst->alg.ivsize & (sizeof(u32) - 1) ||
            inst->alg.ivsize > MAX_IV_SIZE)
@@ -267,7 +264,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl,
 
        inst->free = aead_geniv_free;
 
-done:
        err = aead_register_instance(tmpl, inst);
        if (err)
                goto free_inst;