From: Gustavo A. R. Silva Date: Mon, 5 Mar 2018 22:11:54 +0000 (-0600) Subject: ipv6: ndisc: use true and false for boolean values X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9a21ac943240d0353b726495d08e377a257ace52;p=linux.git 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 0a19ce3a6f7ff..8af5eef464c10 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);