xfrm_policy: use true and false for boolean values
Subsystems (3)
PATCH 1/1 xfrm_policy: 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 <[email protected]>
--- net/xfrm/xfrm_policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/xfrm/xfrm_policy.c +1 -1
@@ -1743,7 +1743,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 ();
Signature · 1 line
2.7.4
Steffen Klassert
maintainerQuoted 5 lines · Gustavo A. R. Silva
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 <[email protected]>
Patch applied to ipsec-next, thanks!