X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=security%2Fselinux%2Fxfrm.c;h=8f17f542a1160bc44ccff63f8a0fe07e756e86b5;hb=cdcba02a5f64f4df20b6749a0169124e38ecb733;hp=874d17c83c610482df080d8bc597f0e7e6eacf56;hpb=1e42198609d73ed1a9adcba2af275c24c2678420;p=linux-2.6-omap-h63xx.git diff --git a/security/selinux/xfrm.c b/security/selinux/xfrm.c index 874d17c83c6..8f17f542a11 100644 --- a/security/selinux/xfrm.c +++ b/security/selinux/xfrm.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include "avc.h" @@ -181,8 +180,7 @@ int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, int ckall) if (!ckall) break; - } - else if (*sid != ctx->ctx_sid) + } else if (*sid != ctx->ctx_sid) return -EINVAL; } } @@ -327,8 +325,7 @@ int selinux_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, */ void selinux_xfrm_policy_free(struct xfrm_sec_ctx *ctx) { - if (ctx) - kfree(ctx); + kfree(ctx); } /* @@ -373,8 +370,7 @@ int selinux_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *uct void selinux_xfrm_state_free(struct xfrm_state *x) { struct xfrm_sec_ctx *ctx = x->security; - if (ctx) - kfree(ctx); + kfree(ctx); } /*