summaryrefslogtreecommitdiff
path: root/Documentation/i2c
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2016-11-29 13:09:48 +0100
committerDavid S. Miller <davem@davemloft.net>2016-11-30 14:14:08 -0500
commit31e2f21fb35bfaa5bdbe1a4860dc99e6b10d8dcd (patch)
tree9546bf8fd1837769d8ff63d13acac5a1f57e5a9a /Documentation/i2c
parentdf90e6886146dd744eb3929782e6df9749cd4a69 (diff)
l2tp: fix address test in __l2tp_ip6_bind_lookup()
The '!(addr && ipv6_addr_equal(addr, laddr))' part of the conditional matches if addr is NULL or if addr != laddr. But the intend of __l2tp_ip6_bind_lookup() is to find a sockets with the same address, so the ipv6_addr_equal() condition needs to be inverted. For better clarity and consistency with the rest of the expression, the (!X || X == Y) notation is used instead of !(X && X != Y). Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/i2c')
0 files changed, 0 insertions, 0 deletions