diff options
author | Eric Dumazet <edumazet@google.com> | 2012-05-18 14:57:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-19 01:08:16 -0400 |
commit | a50feda546ac03415707a9bbcac8d6b20714db21 (patch) | |
tree | 3c1f5d64399e713c97545ca39984d4d2efe6ca5d /net/ipv6/ah6.c | |
parent | 32e9072b92a1c556a303d8d0e0d64feb667e601d (diff) |
ipv6: bool/const conversions phase2
Mostly bool conversions, some inline removals and const additions.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ah6.c')
-rw-r--r-- | net/ipv6/ah6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c index 5d32e7a93b26..f1a4a2c28ed3 100644 --- a/net/ipv6/ah6.c +++ b/net/ipv6/ah6.c | |||
@@ -113,7 +113,7 @@ static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, | |||
113 | __alignof__(struct scatterlist)); | 113 | __alignof__(struct scatterlist)); |
114 | } | 114 | } |
115 | 115 | ||
116 | static int zero_out_mutable_opts(struct ipv6_opt_hdr *opthdr) | 116 | static bool zero_out_mutable_opts(struct ipv6_opt_hdr *opthdr) |
117 | { | 117 | { |
118 | u8 *opt = (u8 *)opthdr; | 118 | u8 *opt = (u8 *)opthdr; |
119 | int len = ipv6_optlen(opthdr); | 119 | int len = ipv6_optlen(opthdr); |
@@ -145,10 +145,10 @@ static int zero_out_mutable_opts(struct ipv6_opt_hdr *opthdr) | |||
145 | len -= optlen; | 145 | len -= optlen; |
146 | } | 146 | } |
147 | if (len == 0) | 147 | if (len == 0) |
148 | return 1; | 148 | return true; |
149 | 149 | ||
150 | bad: | 150 | bad: |
151 | return 0; | 151 | return false; |
152 | } | 152 | } |
153 | 153 | ||
154 | #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) | 154 | #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) |