From: Gustavo A. R. Silva Date: Mon, 5 Mar 2018 21:49:59 +0000 (-0600) Subject: xfrm_policy: use true and false for boolean values X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=415a13296a1a49639cabf9d2fe92267810caa47a;p=linux.git 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 Signed-off-by: Steffen Klassert --- diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 12bd415d349ea..2b7babb661753 100644 --- 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();