diff options
author | Weilong Chen <chenweilong@huawei.com> | 2013-12-23 20:43:47 -0500 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2014-01-02 01:48:49 -0500 |
commit | 3e94c2dcfd7ca297bd7e0a8d96be1e76dec711a3 (patch) | |
tree | 41ac49d46146b498d649c0b6b6a038f198243a5f /net/xfrm/xfrm_input.c | |
parent | 9b7a787d0da7db3127f6e04f8f8159632da50a36 (diff) |
xfrm: checkpatch errors with foo * bar
This patch clean up some checkpatch errors like this:
ERROR: "foo * bar" should be "foo *bar"
ERROR: "(foo*)" should be "(foo *)"
Signed-off-by: Weilong Chen <chenweilong@huawei.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_input.c')
-rw-r--r-- | net/xfrm/xfrm_input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c index 88843996f935..6c7ac016ce3a 100644 --- a/net/xfrm/xfrm_input.c +++ b/net/xfrm/xfrm_input.c | |||
@@ -67,7 +67,7 @@ int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) | |||
67 | case IPPROTO_COMP: | 67 | case IPPROTO_COMP: |
68 | if (!pskb_may_pull(skb, sizeof(struct ip_comp_hdr))) | 68 | if (!pskb_may_pull(skb, sizeof(struct ip_comp_hdr))) |
69 | return -EINVAL; | 69 | return -EINVAL; |
70 | *spi = htonl(ntohs(*(__be16*)(skb_transport_header(skb) + 2))); | 70 | *spi = htonl(ntohs(*(__be16 *)(skb_transport_header(skb) + 2))); |
71 | *seq = 0; | 71 | *seq = 0; |
72 | return 0; | 72 | return 0; |
73 | default: | 73 | default: |
@@ -77,8 +77,8 @@ int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) | |||
77 | if (!pskb_may_pull(skb, hlen)) | 77 | if (!pskb_may_pull(skb, hlen)) |
78 | return -EINVAL; | 78 | return -EINVAL; |
79 | 79 | ||
80 | *spi = *(__be32*)(skb_transport_header(skb) + offset); | 80 | *spi = *(__be32 *)(skb_transport_header(skb) + offset); |
81 | *seq = *(__be32*)(skb_transport_header(skb) + offset_seq); | 81 | *seq = *(__be32 *)(skb_transport_header(skb) + offset_seq); |
82 | return 0; | 82 | return 0; |
83 | } | 83 | } |
84 | 84 | ||