commit | 800777026eeb33585f29608c2c6131fc66d2e218 | [log] [tgz] |
---|---|---|
author | Li RongQing <roy.qing.li@gmail.com> | Wed Apr 22 17:09:54 2015 +0800 |
committer | Steffen Klassert <steffen.klassert@secunet.com> | Thu Apr 23 11:36:06 2015 +0200 |
tree | 23aca36cb198fa486dbb67e7ee28191e1f597db3 | |
parent | 1ee5e6676bccbf7a035d8d35c143f1a61e602198 [diff] |
xfrm: optimise the use of walk list header in xfrm_policy/state_walk The walk from input is the list header, and marked as dead, and will be skipped in loop. list_first_entry() can be used to return the true usable value from walk if walk is not empty Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>