aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
authorWeilong Chen <chenweilong@huawei.com>2013-12-23 20:43:46 -0500
committerSteffen Klassert <steffen.klassert@secunet.com>2014-01-02 01:48:48 -0500
commit9b7a787d0da7db3127f6e04f8f8159632da50a36 (patch)
tree427accc0c9da12031fc5ed286eca2e0a3d2dc9c9 /net/xfrm/xfrm_policy.c
parent852ad5e631967ae2203cb08c5b6b42c26011ed63 (diff)
xfrm: checkpatch errors with space
This patch cleanup some space errors. Signed-off-by: Weilong Chen <chenweilong@huawei.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r--net/xfrm/xfrm_policy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index a7487f34e813..8a2b9d8e1d58 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -1286,7 +1286,7 @@ xfrm_tmpl_resolve_one(struct xfrm_policy *policy, const struct flowi *fl,
1286 xfrm_address_t *saddr = xfrm_flowi_saddr(fl, family); 1286 xfrm_address_t *saddr = xfrm_flowi_saddr(fl, family);
1287 xfrm_address_t tmp; 1287 xfrm_address_t tmp;
1288 1288
1289 for (nx=0, i = 0; i < policy->xfrm_nr; i++) { 1289 for (nx = 0, i = 0; i < policy->xfrm_nr; i++) {
1290 struct xfrm_state *x; 1290 struct xfrm_state *x;
1291 xfrm_address_t *remote = daddr; 1291 xfrm_address_t *remote = daddr;
1292 xfrm_address_t *local = saddr; 1292 xfrm_address_t *local = saddr;
@@ -1326,7 +1326,7 @@ xfrm_tmpl_resolve_one(struct xfrm_policy *policy, const struct flowi *fl,
1326 return nx; 1326 return nx;
1327 1327
1328fail: 1328fail:
1329 for (nx--; nx>=0; nx--) 1329 for (nx--; nx >= 0; nx--)
1330 xfrm_state_put(xfrm[nx]); 1330 xfrm_state_put(xfrm[nx]);
1331 return error; 1331 return error;
1332} 1332}
@@ -1363,7 +1363,7 @@ xfrm_tmpl_resolve(struct xfrm_policy **pols, int npols, const struct flowi *fl,
1363 return cnx; 1363 return cnx;
1364 1364
1365 fail: 1365 fail:
1366 for (cnx--; cnx>=0; cnx--) 1366 for (cnx--; cnx >= 0; cnx--)
1367 xfrm_state_put(tpp[cnx]); 1367 xfrm_state_put(tpp[cnx]);
1368 return error; 1368 return error;
1369 1369
@@ -2332,7 +2332,7 @@ int __xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb,
2332 if (skb->sp) { 2332 if (skb->sp) {
2333 int i; 2333 int i;
2334 2334
2335 for (i=skb->sp->len-1; i>=0; i--) { 2335 for (i = skb->sp->len-1; i >= 0; i--) {
2336 struct xfrm_state *x = skb->sp->xvec[i]; 2336 struct xfrm_state *x = skb->sp->xvec[i];
2337 if (!xfrm_selector_match(&x->sel, &fl, family)) { 2337 if (!xfrm_selector_match(&x->sel, &fl, family)) {
2338 XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATEMISMATCH); 2338 XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATEMISMATCH);
@@ -2987,7 +2987,7 @@ static void xfrm_audit_common_policyinfo(struct xfrm_policy *xp,
2987 audit_log_format(audit_buf, " sec_alg=%u sec_doi=%u sec_obj=%s", 2987 audit_log_format(audit_buf, " sec_alg=%u sec_doi=%u sec_obj=%s",
2988 ctx->ctx_alg, ctx->ctx_doi, ctx->ctx_str); 2988 ctx->ctx_alg, ctx->ctx_doi, ctx->ctx_str);
2989 2989
2990 switch(sel->family) { 2990 switch (sel->family) {
2991 case AF_INET: 2991 case AF_INET:
2992 audit_log_format(audit_buf, " src=%pI4", &sel->saddr.a4); 2992 audit_log_format(audit_buf, " src=%pI4", &sel->saddr.a4);
2993 if (sel->prefixlen_s != 32) 2993 if (sel->prefixlen_s != 32)