Skip to content

Commit cc24bec

Browse files
lz7tq4davem330
authored andcommitted
ipv6: White-space cleansing : Structure layouts
This patch makes no changes to the logic of the code but simply addresses coding style issues as detected by checkpatch. Both objdump and diff -w show no differences. This patch addresses structure definitions, specifically it cleanses the brace placement and replaces spaces with tabs in a few places. Signed-off-by: Ian Morris <ipm@chirality.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 67ba415 commit cc24bec

5 files changed

Lines changed: 13 additions & 21 deletions

File tree

‎net/ipv6/ah6.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,11 +755,10 @@ static int ah6_rcv_cb(struct sk_buff *skb, int err)
755755
return 0;
756756
}
757757

758-
static const struct xfrm_type ah6_type =
759-
{
758+
static const struct xfrm_type ah6_type = {
760759
.description = "AH6",
761760
.owner = THIS_MODULE,
762-
.proto = IPPROTO_AH,
761+
.proto = IPPROTO_AH,
763762
.flags = XFRM_TYPE_REPLAY_PROT,
764763
.init_state = ah6_init_state,
765764
.destructor = ah6_destroy,

‎net/ipv6/esp6.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -621,11 +621,10 @@ static int esp6_rcv_cb(struct sk_buff *skb, int err)
621621
return 0;
622622
}
623623

624-
static const struct xfrm_type esp6_type =
625-
{
624+
static const struct xfrm_type esp6_type = {
626625
.description = "ESP6",
627-
.owner = THIS_MODULE,
628-
.proto = IPPROTO_ESP,
626+
.owner = THIS_MODULE,
627+
.proto = IPPROTO_ESP,
629628
.flags = XFRM_TYPE_REPLAY_PROT,
630629
.init_state = esp6_init_state,
631630
.destructor = esp6_destroy,

‎net/ipv6/ipcomp6.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ static int ipcomp6_rcv_cb(struct sk_buff *skb, int err)
181181
return 0;
182182
}
183183

184-
static const struct xfrm_type ipcomp6_type =
185-
{
184+
static const struct xfrm_type ipcomp6_type = {
186185
.description = "IPCOMP6",
187186
.owner = THIS_MODULE,
188187
.proto = IPPROTO_COMP,
@@ -193,8 +192,7 @@ static const struct xfrm_type ipcomp6_type =
193192
.hdr_offset = xfrm6_find_1stfragopt,
194193
};
195194

196-
static struct xfrm6_protocol ipcomp6_protocol =
197-
{
195+
static struct xfrm6_protocol ipcomp6_protocol = {
198196
.handler = xfrm6_rcv,
199197
.cb_handler = ipcomp6_rcv_cb,
200198
.err_handler = ipcomp6_err,

‎net/ipv6/mip6.c‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,10 @@ static void mip6_destopt_destroy(struct xfrm_state *x)
336336
{
337337
}
338338

339-
static const struct xfrm_type mip6_destopt_type =
340-
{
339+
static const struct xfrm_type mip6_destopt_type = {
341340
.description = "MIP6DESTOPT",
342341
.owner = THIS_MODULE,
343-
.proto = IPPROTO_DSTOPTS,
342+
.proto = IPPROTO_DSTOPTS,
344343
.flags = XFRM_TYPE_NON_FRAGMENT | XFRM_TYPE_LOCAL_COADDR,
345344
.init_state = mip6_destopt_init_state,
346345
.destructor = mip6_destopt_destroy,
@@ -469,11 +468,10 @@ static void mip6_rthdr_destroy(struct xfrm_state *x)
469468
{
470469
}
471470

472-
static const struct xfrm_type mip6_rthdr_type =
473-
{
471+
static const struct xfrm_type mip6_rthdr_type = {
474472
.description = "MIP6RT",
475473
.owner = THIS_MODULE,
476-
.proto = IPPROTO_ROUTING,
474+
.proto = IPPROTO_ROUTING,
477475
.flags = XFRM_TYPE_NON_FRAGMENT | XFRM_TYPE_REMOTE_COADDR,
478476
.init_state = mip6_rthdr_init_state,
479477
.destructor = mip6_rthdr_destroy,

‎net/ipv6/reassembly.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@
6262

6363
static const char ip6_frag_cache_name[] = "ip6-frags";
6464

65-
struct ip6frag_skb_cb
66-
{
65+
struct ip6frag_skb_cb {
6766
struct inet6_skb_parm h;
6867
int offset;
6968
};
@@ -575,8 +574,7 @@ static int ipv6_frag_rcv(struct sk_buff *skb)
575574
return -1;
576575
}
577576

578-
static const struct inet6_protocol frag_protocol =
579-
{
577+
static const struct inet6_protocol frag_protocol = {
580578
.handler = ipv6_frag_rcv,
581579
.flags = INET6_PROTO_NOPOLICY,
582580
};

0 commit comments

Comments
 (0)