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>
This commit is contained in:
Ian Morris
2014-11-23 21:28:43 +00:00
committed by David S. Miller
parent 78e2045d3d
commit e5d08d718a
13 changed files with 55 additions and 33 deletions

View File

@@ -243,7 +243,8 @@ int icmpv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6,
struct icmp6hdr *icmp6h;
int err = 0;
if ((skb = skb_peek(&sk->sk_write_queue)) == NULL)
skb = skb_peek(&sk->sk_write_queue);
if (skb == NULL)
goto out;
icmp6h = icmp6_hdr(skb);