xfrm: state: simplify rcu_read_unlock handling in two spots
Instead of:
if (foo) {
unlock();
return bar();
}
unlock();
do:
unlock();
if (foo)
return bar();
This is ok because rcu protected structure is only dereferenced before
the conditional.
Signed-off-by:
Florian Westphal <fw@strlen.de>
Signed-off-by:
Steffen Klassert <steffen.klassert@secunet.com>
Loading
Please register or sign in to comment