X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=crypto%2Falgapi.c;h=6149a6e09643f0c9b975ac339dd904dd58421262;hb=b7806dc7cba840ea538706621486475d93a53c55;hp=08c57c8aec952bee02e6076d323f49c3523c16d7;hpb=dcad0fceae528e8007610308bad7e5a3370e5c39;p=~andy%2Flinux diff --git a/crypto/algapi.c b/crypto/algapi.c index 08c57c8aec9..6149a6e0964 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c @@ -447,7 +447,7 @@ EXPORT_SYMBOL_GPL(crypto_register_template); void crypto_unregister_template(struct crypto_template *tmpl) { struct crypto_instance *inst; - struct hlist_node *p, *n; + struct hlist_node *n; struct hlist_head *list; LIST_HEAD(users); @@ -457,7 +457,7 @@ void crypto_unregister_template(struct crypto_template *tmpl) list_del_init(&tmpl->list); list = &tmpl->instances; - hlist_for_each_entry(inst, p, list, list) { + hlist_for_each_entry(inst, list, list) { int err = crypto_remove_alg(&inst->alg, &users); BUG_ON(err); } @@ -466,7 +466,7 @@ void crypto_unregister_template(struct crypto_template *tmpl) up_write(&crypto_alg_sem); - hlist_for_each_entry_safe(inst, p, n, list, list) { + hlist_for_each_entry_safe(inst, n, list, list) { BUG_ON(atomic_read(&inst->alg.cra_refcnt) != 1); tmpl->free(inst); }