summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2018-03-05 15:49:59 -0600
committerSteffen Klassert <steffen.klassert@secunet.com>2018-03-07 10:55:13 +0100
commit415a13296a1a49639cabf9d2fe92267810caa47a (patch)
tree4fed6cc68c736cf82df52dd4c1c2af103f451585
parent5211fcfb8110f77ff9f389e476563345817f61a5 (diff)
downloadop-kernel-dev-415a13296a1a49639cabf9d2fe92267810caa47a.zip
op-kernel-dev-415a13296a1a49639cabf9d2fe92267810caa47a.tar.gz
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 <garsilva@embeddedor.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
-rw-r--r--net/xfrm/xfrm_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 12bd415..2b7babb 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();
OpenPOWER on IntegriCloud