diff options
author | Weilong Chen <chenweilong@huawei.com> | 2013-12-23 20:43:48 -0500 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2014-01-02 01:48:50 -0500 |
commit | 02d0892f98a5f43c86a3ee9dc796e529557a9f80 (patch) | |
tree | 9f49c33c2f92dac1cdd32129db30c7ad08e328c3 /net/xfrm | |
parent | 3e94c2dcfd7ca297bd7e0a8d96be1e76dec711a3 (diff) |
xfrm: checkpatch erros with space prohibited
Fix checkpatch error "space prohibited xxx".
Signed-off-by: Weilong Chen <chenweilong@huawei.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 6 | ||||
-rw-r--r-- | net/xfrm/xfrm_user.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index dc8bd1ba4b3e..fbc72b4570de 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -1704,7 +1704,7 @@ static int xfrm_expand_policies(const struct flowi *fl, u16 family, | |||
1704 | xfrm_pols_put(pols, *num_pols); | 1704 | xfrm_pols_put(pols, *num_pols); |
1705 | return PTR_ERR(pols[1]); | 1705 | return PTR_ERR(pols[1]); |
1706 | } | 1706 | } |
1707 | (*num_pols) ++; | 1707 | (*num_pols)++; |
1708 | (*num_xfrms) += pols[1]->xfrm_nr; | 1708 | (*num_xfrms) += pols[1]->xfrm_nr; |
1709 | } | 1709 | } |
1710 | } | 1710 | } |
@@ -2378,7 +2378,7 @@ int __xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb, | |||
2378 | pol->curlft.use_time = get_seconds(); | 2378 | pol->curlft.use_time = get_seconds(); |
2379 | 2379 | ||
2380 | pols[0] = pol; | 2380 | pols[0] = pol; |
2381 | npols ++; | 2381 | npols++; |
2382 | #ifdef CONFIG_XFRM_SUB_POLICY | 2382 | #ifdef CONFIG_XFRM_SUB_POLICY |
2383 | if (pols[0]->type != XFRM_POLICY_TYPE_MAIN) { | 2383 | if (pols[0]->type != XFRM_POLICY_TYPE_MAIN) { |
2384 | pols[1] = xfrm_policy_lookup_bytype(net, XFRM_POLICY_TYPE_MAIN, | 2384 | 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, | |||
2390 | return 0; | 2390 | return 0; |
2391 | } | 2391 | } |
2392 | pols[1]->curlft.use_time = get_seconds(); | 2392 | pols[1]->curlft.use_time = get_seconds(); |
2393 | npols ++; | 2393 | npols++; |
2394 | } | 2394 | } |
2395 | } | 2395 | } |
2396 | #endif | 2396 | #endif |
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index e50be4275c6c..334856689b0d 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -1824,7 +1824,7 @@ static int xfrm_new_ae(struct sk_buff *skb, struct nlmsghdr *nlh, | |||
1824 | struct net *net = sock_net(skb->sk); | 1824 | struct net *net = sock_net(skb->sk); |
1825 | struct xfrm_state *x; | 1825 | struct xfrm_state *x; |
1826 | struct km_event c; | 1826 | struct km_event c; |
1827 | int err = - EINVAL; | 1827 | int err = -EINVAL; |
1828 | u32 mark = 0; | 1828 | u32 mark = 0; |
1829 | struct xfrm_mark m; | 1829 | struct xfrm_mark m; |
1830 | struct xfrm_aevent_id *p = nlmsg_data(nlh); | 1830 | struct xfrm_aevent_id *p = nlmsg_data(nlh); |