projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hlist: drop the node parameter from iterators
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
crypto
/
algapi.c
diff --git
a/crypto/algapi.c
b/crypto/algapi.c
index
08c57c8
..
6149a6e
100644
(file)
--- 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;
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);
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;
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);
}
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);
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);
}
BUG_ON(atomic_read(&inst->alg.cra_refcnt) != 1);
tmpl->free(inst);
}