+7
−6
Loading
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>