diff --git a/crypto/echainiv.c b/crypto/echainiv.c index d3896c7e634be28f27864593b2f0eeff9ba34211..806ebe73cb64b5df3f22902806b67ce26907da7e 100644 --- a/crypto/echainiv.c +++ b/crypto/echainiv.c @@ -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;