xfrm_policy: use true and false for boolean values
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 5 Mar 2018 21:49:59 +0000 (15:49 -0600)
committerSteffen 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

index 12bd415d349ea45708111dd9fe700469d46d4725..2b7babb6617535164516a1cece202e7ec8c4fd38 100644 (file)
@@ -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();