xfrm: policy: xfrm_policy_unregister_afinfo can return void
Nothing checks the return value. Also, the errors returned on unregister are impossible (we only support INET and INET6, so no way xfrm_policy_afinfo[afinfo->family] can be anything other than 'afinfo' itself). Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
This commit is contained in:

committed by
Steffen Klassert

parent
f5e2bb4f5b
commit
2b61997aa0
@@ -304,7 +304,7 @@ struct xfrm_policy_afinfo {
|
||||
};
|
||||
|
||||
int xfrm_policy_register_afinfo(struct xfrm_policy_afinfo *afinfo);
|
||||
int xfrm_policy_unregister_afinfo(struct xfrm_policy_afinfo *afinfo);
|
||||
void xfrm_policy_unregister_afinfo(struct xfrm_policy_afinfo *afinfo);
|
||||
void km_policy_notify(struct xfrm_policy *xp, int dir,
|
||||
const struct km_event *c);
|
||||
void km_state_notify(struct xfrm_state *x, const struct km_event *c);
|
||||
|
Reference in New Issue
Block a user