Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
[linux-2.6-block.git] / crypto / echainiv.c
index e3d889b122e0f5c3e7b7646b704436ee5ac5910c..45819e6015bf408c927f940024f22661bdbc7e06 100644 (file)
@@ -118,8 +118,6 @@ static int echainiv_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);
@@ -127,9 +125,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl,
        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) - 1) || !inst->alg.ivsize)
                goto free_inst;