xfrm: avoid rcu sparse warning
authorFlorian Westphal <fw@strlen.de>
Mon, 9 Jan 2017 13:20:46 +0000 (14:20 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 10 Jan 2017 09:57:13 +0000 (10:57 +0100)
commit423826a7b104724a16676a75d597a35d3bdb18b8
tree3b8b9f0e170d5bb26a3a15a8d144718b925834ed
parent961a9c0a4a9783e47f8cb76134b2303c4872380b
xfrm: avoid rcu sparse warning

xfrm/xfrm_state.c:1973:21: error: incompatible types in comparison expression (different address spaces)

Harmless, but lets fix it to reduce the noise.

While at it, get rid of unneeded NULL check, its never hit:

net/ipv4/xfrm4_state.c: xfrm_state_register_afinfo(&xfrm4_state_afinfo);
net/ipv6/xfrm6_state.c: return xfrm_state_register_afinfo(&xfrm6_state_afinfo);
net/ipv6/xfrm6_state.c: xfrm_state_unregister_afinfo(&xfrm6_state_afinfo);

... are the only callsites.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_state.c