xfrm: checkpatch erros with space prohibited
authorWeilong Chen <chenweilong@huawei.com>
Tue, 24 Dec 2013 01:43:48 +0000 (09:43 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 2 Jan 2014 06:48:50 +0000 (07:48 +0100)
Fix checkpatch error "space prohibited xxx".

Signed-off-by: Weilong Chen <chenweilong@huawei.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_user.c

index dc8bd1ba4b3e2f32428182100b5c8fffdbdb6257..fbc72b4570de756e8aaa3bfb8ac7d559b4f8ae9e 100644 (file)
@@ -1704,7 +1704,7 @@ static int xfrm_expand_policies(const struct flowi *fl, u16 family,
                                xfrm_pols_put(pols, *num_pols);
                                return PTR_ERR(pols[1]);
                        }
-                       (*num_pols) ++;
+                       (*num_pols)++;
                        (*num_xfrms) += pols[1]->xfrm_nr;
                }
        }
@@ -2378,7 +2378,7 @@ int __xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb,
        pol->curlft.use_time = get_seconds();
 
        pols[0] = pol;
-       npols ++;
+       npols++;
 #ifdef CONFIG_XFRM_SUB_POLICY
        if (pols[0]->type != XFRM_POLICY_TYPE_MAIN) {
                pols[1] = xfrm_policy_lookup_bytype(net, XFRM_POLICY_TYPE_MAIN,
@@ -2390,7 +2390,7 @@ int __xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb,
                                return 0;
                        }
                        pols[1]->curlft.use_time = get_seconds();
-                       npols ++;
+                       npols++;
                }
        }
 #endif
index e50be4275c6c1b90afd95bff1b1b0f5b89395701..334856689b0d9861441a12b344b6fdcba5ce1dee 100644 (file)
@@ -1824,7 +1824,7 @@ static int xfrm_new_ae(struct sk_buff *skb, struct nlmsghdr *nlh,
        struct net *net = sock_net(skb->sk);
        struct xfrm_state *x;
        struct km_event c;
-       int err = - EINVAL;
+       int err = -EINVAL;
        u32 mark = 0;
        struct xfrm_mark m;
        struct xfrm_aevent_id *p = nlmsg_data(nlh);