aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-05-16 19:15:34 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-17 14:59:59 -0400
commita2a385d627e1549da4b43a8b3dfe370589766e1c (patch)
treed61e9913497c6c14406032f6a0822738707f1abf /net/ipv6
parente005d193d55ee5f757b13306112d8c23aac27a88 (diff)
tcp: bool conversions
bool conversions where possible. __inline__ -> inline space cleanups Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/tcp_ipv6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 4cf55ae7bf8..554d5999abc 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1055,7 +1055,7 @@ static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb)
1055 struct tcp_sock *tp = tcp_sk(sk); 1055 struct tcp_sock *tp = tcp_sk(sk);
1056 __u32 isn = TCP_SKB_CB(skb)->when; 1056 __u32 isn = TCP_SKB_CB(skb)->when;
1057 struct dst_entry *dst = NULL; 1057 struct dst_entry *dst = NULL;
1058 int want_cookie = 0; 1058 bool want_cookie = false;
1059 1059
1060 if (skb->protocol == htons(ETH_P_IP)) 1060 if (skb->protocol == htons(ETH_P_IP))
1061 return tcp_v4_conn_request(sk, skb); 1061 return tcp_v4_conn_request(sk, skb);
@@ -1116,7 +1116,7 @@ static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb)
1116 while (l-- > 0) 1116 while (l-- > 0)
1117 *c++ ^= *hash_location++; 1117 *c++ ^= *hash_location++;
1118 1118
1119 want_cookie = 0; /* not our kind of cookie */ 1119 want_cookie = false; /* not our kind of cookie */
1120 tmp_ext.cookie_out_never = 0; /* false */ 1120 tmp_ext.cookie_out_never = 0; /* false */
1121 tmp_ext.cookie_plus = tmp_opt.cookie_plus; 1121 tmp_ext.cookie_plus = tmp_opt.cookie_plus;
1122 } else if (!tp->rx_opt.cookie_in_always) { 1122 } else if (!tp->rx_opt.cookie_in_always) {