forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipv6: White-space cleansing : Line 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. A number of items are addressed in this patch: * Multiple spaces converted to tabs * Spaces before tabs removed. * Spaces in pointer typing cleansed (char *)foo etc. * Remove space after sizeof * Ensure spacing around comparators such as if statements. Signed-off-by: Ian Morris <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information
Showing
31 changed files
with
203 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,10 @@ | |
* Authors | ||
* | ||
* Mitsuru KANDA @USAGI : IPv6 Support | ||
* Kazunori MIYAZAWA @USAGI : | ||
* Kunihiro Ishiguro <[email protected]> | ||
* Kazunori MIYAZAWA @USAGI : | ||
* Kunihiro Ishiguro <[email protected]> | ||
* | ||
* This file is derived from net/ipv4/ah.c. | ||
* This file is derived from net/ipv4/ah.c. | ||
*/ | ||
|
||
#define pr_fmt(fmt) "IPv6: " fmt | ||
|
@@ -284,7 +284,7 @@ static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir) | |
ipv6_rearrange_rthdr(iph, exthdr.rth); | ||
break; | ||
|
||
default : | ||
default: | ||
return 0; | ||
} | ||
|
||
|
@@ -478,7 +478,7 @@ static void ah6_input_done(struct crypto_async_request *base, int err) | |
auth_data = ah_tmp_auth(work_iph, hdr_len); | ||
icv = ah_tmp_icv(ahp->ahash, auth_data, ahp->icv_trunc_len); | ||
|
||
err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG: 0; | ||
err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; | ||
if (err) | ||
goto out; | ||
|
||
|
@@ -622,7 +622,7 @@ static int ah6_input(struct xfrm_state *x, struct sk_buff *skb) | |
goto out_free; | ||
} | ||
|
||
err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG: 0; | ||
err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; | ||
if (err) | ||
goto out_free; | ||
|
||
|
@@ -647,8 +647,8 @@ static int ah6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, | |
u8 type, u8 code, int offset, __be32 info) | ||
{ | ||
struct net *net = dev_net(skb->dev); | ||
struct ipv6hdr *iph = (struct ipv6hdr*)skb->data; | ||
struct ip_auth_hdr *ah = (struct ip_auth_hdr*)(skb->data+offset); | ||
struct ipv6hdr *iph = (struct ipv6hdr *)skb->data; | ||
struct ip_auth_hdr *ah = (struct ip_auth_hdr *)(skb->data+offset); | ||
struct xfrm_state *x; | ||
|
||
if (type != ICMPV6_PKT_TOOBIG && | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,10 @@ | |
* Authors | ||
* | ||
* Mitsuru KANDA @USAGI : IPv6 Support | ||
* Kazunori MIYAZAWA @USAGI : | ||
* Kunihiro Ishiguro <[email protected]> | ||
* Kazunori MIYAZAWA @USAGI : | ||
* Kunihiro Ishiguro <[email protected]> | ||
* | ||
* This file is derived from net/ipv4/esp.c | ||
* This file is derived from net/ipv4/esp.c | ||
*/ | ||
|
||
#define pr_fmt(fmt) "IPv6: " fmt | ||
|
@@ -598,7 +598,7 @@ static int esp6_init_state(struct xfrm_state *x) | |
case XFRM_MODE_BEET: | ||
if (x->sel.family != AF_INET6) | ||
x->props.header_len += IPV4_BEET_PHMAXLEN + | ||
(sizeof(struct ipv6hdr) - sizeof(struct iphdr)); | ||
(sizeof(struct ipv6hdr) - sizeof(struct iphdr)); | ||
break; | ||
case XFRM_MODE_TRANSPORT: | ||
break; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Generic INET6 transport hashtables | ||
* | ||
* Authors: Lotsa people, from code originally in tcp, generalised here | ||
* by Arnaldo Carvalho de Melo <[email protected]> | ||
* by Arnaldo Carvalho de Melo <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.