aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
authorIan Morris <ipm@chirality.org.uk>2014-11-23 16:28:43 -0500
committerDavid S. Miller <davem@davemloft.net>2014-11-23 21:00:56 -0500
commite5d08d718a7cd72c6aa79b5f0c309d9f0d7e4a95 (patch)
tree6b8beca04a01e147cf78284fef1e443e5df1f991 /net/ipv6/udp.c
parent78e2045d3d562e43562e3cbf0e96c26e38a718e9 (diff)
ipv6: coding style improvements (remove assignment in if statements)
This change has no functional impact and simply addresses some coding style issues detected by checkpatch. Specifically this change adjusts "if" statements which also include the assignment of a variable. No changes to the resultant object files result as determined by objdiff. Signed-off-by: Ian Morris <ipm@chirality.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r--net/ipv6/udp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 0ba3de4f2368..dbc0b042bdd6 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -357,7 +357,8 @@ static struct sock *__udp6_lib_lookup_skb(struct sk_buff *skb,
357 struct sock *sk; 357 struct sock *sk;
358 const struct ipv6hdr *iph = ipv6_hdr(skb); 358 const struct ipv6hdr *iph = ipv6_hdr(skb);
359 359
360 if (unlikely(sk = skb_steal_sock(skb))) 360 sk = skb_steal_sock(skb);
361 if (unlikely(sk))
361 return sk; 362 return sk;
362 return __udp6_lib_lookup(dev_net(skb_dst(skb)->dev), &iph->saddr, sport, 363 return __udp6_lib_lookup(dev_net(skb_dst(skb)->dev), &iph->saddr, sport,
363 &iph->daddr, dport, inet6_iif(skb), 364 &iph->daddr, dport, inet6_iif(skb),
@@ -1026,7 +1027,8 @@ static int udp_v6_push_pending_frames(struct sock *sk)
1026 fl6 = &inet->cork.fl.u.ip6; 1027 fl6 = &inet->cork.fl.u.ip6;
1027 1028
1028 /* Grab the skbuff where UDP header space exists. */ 1029 /* Grab the skbuff where UDP header space exists. */
1029 if ((skb = skb_peek(&sk->sk_write_queue)) == NULL) 1030 skb = skb_peek(&sk->sk_write_queue);
1031 if (skb == NULL)
1030 goto out; 1032 goto out;
1031 1033
1032 /* 1034 /*