projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22936c3
)
ipv6: ndisc: use true and false for boolean values
author
Gustavo A. R. Silva
<garsilva@embeddedor.com>
Mon, 5 Mar 2018 22:11:54 +0000
(16:11 -0600)
committer
David S. Miller
<davem@davemloft.net>
Wed, 7 Mar 2018 17:19:47 +0000
(12:19 -0500)
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>
net/ipv6/ndisc.c
patch
|
blob
|
history
diff --git
a/net/ipv6/ndisc.c
b/net/ipv6/ndisc.c
index
0a19ce3
..
8af5eef
100644
(file)
--- 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);