crypto: api - use list_first_entry_or_null and list_next_entry
authorGeliang Tang <geliangtang@163.com>
Mon, 16 Nov 2015 14:37:14 +0000 (22:37 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 23 Nov 2015 12:55:50 +0000 (20:55 +0800)
commit304e4818d4a45e83019ea30e4cfcb3ac2a8ce09a
tree426d0b70e9fe8624c66ef63d96e7ac0963399f17
parent4f9ea86604e3ba64edd2817795798168fbb3c1a6
crypto: api - use list_first_entry_or_null and list_next_entry

Simplify crypto_more_spawns() with list_first_entry_or_null()
and list_next_entry().

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algapi.c