projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5211fcf
)
xfrm_policy: use true and false for boolean values
author
Gustavo A. R. Silva
<garsilva@embeddedor.com>
Mon, 5 Mar 2018 21:49:59 +0000
(15:49 -0600)
committer
Steffen Klassert
<steffen.klassert@secunet.com>
Wed, 7 Mar 2018 09:55:13 +0000
(10:55 +0100)
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: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c
patch
|
blob
|
history
diff --git
a/net/xfrm/xfrm_policy.c
b/net/xfrm/xfrm_policy.c
index 12bd415d349ea45708111dd9fe700469d46d4725..2b7babb6617535164516a1cece202e7ec8c4fd38 100644
(file)
--- a/
net/xfrm/xfrm_policy.c
+++ b/
net/xfrm/xfrm_policy.c
@@
-1740,7
+1740,7
@@
static void xfrm_pcpu_work_fn(struct work_struct *work)
void xfrm_policy_cache_flush(void)
{
struct xfrm_dst *old;
- bool found =
0
;
+ bool found =
false
;
int cpu;
might_sleep();