crypto: algapi - remove crypto_template::{alloc,free}()
[linux-2.6-microblaze.git] / crypto / aead.c
index 02a0db0..7707d32 100644 (file)
@@ -185,11 +185,6 @@ static void crypto_aead_free_instance(struct crypto_instance *inst)
 {
        struct aead_instance *aead = aead_instance(inst);
 
-       if (!aead->free) {
-               inst->tmpl->free(inst);
-               return;
-       }
-
        aead->free(aead);
 }