diff options
author | Ian Morris <ipm@chirality.org.uk> | 2014-11-23 22:28:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-24 03:00:56 +0100 |
commit | e5d08d718a7cd72c6aa79b5f0c309d9f0d7e4a95 (patch) | |
tree | 6b8beca04a01e147cf78284fef1e443e5df1f991 /net/ipv6/ip6_vti.c | |
parent | enic: use spin_lock(wq_lock) instead of spin_lock_irqsave(wq_lock) (diff) | |
download | linux-e5d08d718a7cd72c6aa79b5f0c309d9f0d7e4a95.tar.xz linux-e5d08d718a7cd72c6aa79b5f0c309d9f0d7e4a95.zip |
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/ip6_vti.c')
-rw-r--r-- | net/ipv6/ip6_vti.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ip6_vti.c b/net/ipv6/ip6_vti.c index ec84d03491c7..83082168b056 100644 --- a/net/ipv6/ip6_vti.c +++ b/net/ipv6/ip6_vti.c @@ -287,8 +287,8 @@ static int vti6_rcv(struct sk_buff *skb) const struct ipv6hdr *ipv6h = ipv6_hdr(skb); rcu_read_lock(); - if ((t = vti6_tnl_lookup(dev_net(skb->dev), &ipv6h->saddr, - &ipv6h->daddr)) != NULL) { + t = vti6_tnl_lookup(dev_net(skb->dev), &ipv6h->saddr, &ipv6h->daddr); + if (t != NULL) { if (t->parms.proto != IPPROTO_IPV6 && t->parms.proto != 0) { rcu_read_unlock(); goto discard; |