]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: af_alg - use list_for_each_entry() in af_alg_count_tsgl()
authorEric Biggers <ebiggers@google.com>
Thu, 10 Jan 2019 20:18:01 +0000 (12:18 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Jan 2019 10:43:43 +0000 (18:43 +0800)
commitf89dca98ace980cfaffe8499ba1619ad2338a5d5
treeea4b76916ddcb6d17696758a7312144aeb809764
parent8e5428f2e60729d80b2653c1b6b6712a2368c583
crypto: af_alg - use list_for_each_entry() in af_alg_count_tsgl()

af_alg_count_tsgl() iterates through a list without modifying it, so use
list_for_each_entry() rather than list_for_each_entry_safe().  Also make
the pointers 'const' to make it clearer that nothing is modified.

No actual change in behavior.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/af_alg.c