diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2018-03-06 01:11:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-07 20:19:47 +0300 |
commit | 9a21ac943240d0353b726495d08e377a257ace52 (patch) | |
tree | fe98ed3d84e79be81fb8b0fe42eca2efee9d40b3 /net/ipv6 | |
parent | 22936c3e6e8cdd9641fdf1362dc9369dd35246c8 (diff) | |
download | linux-9a21ac943240d0353b726495d08e377a257ace52.tar.xz |
ipv6: ndisc: use true and false for boolean values
Assign true or false to boolean variables instead of an integer value.
This issue was detected with the help of Coccinelle.
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/ndisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 0a19ce3a6f7f..8af5eef464c1 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -527,7 +527,7 @@ void ndisc_send_na(struct net_device *dev, const struct in6_addr *daddr, } if (!dev->addr_len) - inc_opt = 0; + inc_opt = false; if (inc_opt) optlen += ndisc_opt_addr_space(dev, NDISC_NEIGHBOUR_ADVERTISEMENT); |