diff options
author | Joe Perches <joe@perches.com> | 2009-11-23 13:41:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-23 13:41:23 -0500 |
commit | 9d4fb27db90043cd2640e4bc778f9c755d3c17c1 (patch) | |
tree | 53f1b0851fdd02e78a18f1a9db57e7cc22e2b280 /net/ipv4/udp.c | |
parent | 6ebfbc065624790772398f5b327ac33a7ae3880b (diff) |
net/ipv4: Move && and || to end of previous line
On Sun, 2009-11-22 at 16:31 -0800, David Miller wrote:
> It should be of the form:
> if (x &&
> y)
>
> or:
> if (x && y)
>
> Fix patches, rather than complaints, for existing cases where things
> do not follow this pattern are certainly welcome.
Also collapsed some multiple tabs to single space.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 1eaf57567ebf..1f9534846ca9 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -136,12 +136,12 @@ static int udp_lib_lport_inuse(struct net *net, __u16 num, | |||
136 | struct hlist_nulls_node *node; | 136 | struct hlist_nulls_node *node; |
137 | 137 | ||
138 | sk_nulls_for_each(sk2, node, &hslot->head) | 138 | sk_nulls_for_each(sk2, node, &hslot->head) |
139 | if (net_eq(sock_net(sk2), net) && | 139 | if (net_eq(sock_net(sk2), net) && |
140 | sk2 != sk && | 140 | sk2 != sk && |
141 | (bitmap || udp_sk(sk2)->udp_port_hash == num) && | 141 | (bitmap || udp_sk(sk2)->udp_port_hash == num) && |
142 | (!sk2->sk_reuse || !sk->sk_reuse) && | 142 | (!sk2->sk_reuse || !sk->sk_reuse) && |
143 | (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if | 143 | (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if || |
144 | || sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && | 144 | sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && |
145 | (*saddr_comp)(sk, sk2)) { | 145 | (*saddr_comp)(sk, sk2)) { |
146 | if (bitmap) | 146 | if (bitmap) |
147 | __set_bit(udp_sk(sk2)->udp_port_hash >> log, | 147 | __set_bit(udp_sk(sk2)->udp_port_hash >> log, |
@@ -168,12 +168,12 @@ static int udp_lib_lport_inuse2(struct net *net, __u16 num, | |||
168 | 168 | ||
169 | spin_lock(&hslot2->lock); | 169 | spin_lock(&hslot2->lock); |
170 | udp_portaddr_for_each_entry(sk2, node, &hslot2->head) | 170 | udp_portaddr_for_each_entry(sk2, node, &hslot2->head) |
171 | if (net_eq(sock_net(sk2), net) && | 171 | if (net_eq(sock_net(sk2), net) && |
172 | sk2 != sk && | 172 | sk2 != sk && |
173 | (udp_sk(sk2)->udp_port_hash == num) && | 173 | (udp_sk(sk2)->udp_port_hash == num) && |
174 | (!sk2->sk_reuse || !sk->sk_reuse) && | 174 | (!sk2->sk_reuse || !sk->sk_reuse) && |
175 | (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if | 175 | (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if || |
176 | || sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && | 176 | sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && |
177 | (*saddr_comp)(sk, sk2)) { | 177 | (*saddr_comp)(sk, sk2)) { |
178 | res = 1; | 178 | res = 1; |
179 | break; | 179 | break; |
@@ -545,13 +545,13 @@ static inline struct sock *udp_v4_mcast_next(struct net *net, struct sock *sk, | |||
545 | sk_nulls_for_each_from(s, node) { | 545 | sk_nulls_for_each_from(s, node) { |
546 | struct inet_sock *inet = inet_sk(s); | 546 | struct inet_sock *inet = inet_sk(s); |
547 | 547 | ||
548 | if (!net_eq(sock_net(s), net) || | 548 | if (!net_eq(sock_net(s), net) || |
549 | udp_sk(s)->udp_port_hash != hnum || | 549 | udp_sk(s)->udp_port_hash != hnum || |
550 | (inet->inet_daddr && inet->inet_daddr != rmt_addr) || | 550 | (inet->inet_daddr && inet->inet_daddr != rmt_addr) || |
551 | (inet->inet_dport != rmt_port && inet->inet_dport) || | 551 | (inet->inet_dport != rmt_port && inet->inet_dport) || |
552 | (inet->inet_rcv_saddr && | 552 | (inet->inet_rcv_saddr && |
553 | inet->inet_rcv_saddr != loc_addr) || | 553 | inet->inet_rcv_saddr != loc_addr) || |
554 | ipv6_only_sock(s) || | 554 | ipv6_only_sock(s) || |
555 | (s->sk_bound_dev_if && s->sk_bound_dev_if != dif)) | 555 | (s->sk_bound_dev_if && s->sk_bound_dev_if != dif)) |
556 | continue; | 556 | continue; |
557 | if (!ip_mc_sf_allow(s, loc_addr, rmt_addr, dif)) | 557 | if (!ip_mc_sf_allow(s, loc_addr, rmt_addr, dif)) |