Received: by 10.223.185.116 with SMTP id b49csp3082316wrg; Mon, 5 Mar 2018 13:51:26 -0800 (PST) X-Google-Smtp-Source: AG47ELu+OeJaax19BZIMSDIErk3w6b5KjUkmKCdPEJRN18UiGAH+qcHwDNLKoO+CGw8JHR17x3x+ X-Received: by 2002:a17:902:d83:: with SMTP id 3-v6mr14800992plv.47.1520286686413; Mon, 05 Mar 2018 13:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520286686; cv=none; d=google.com; s=arc-20160816; b=HF42ItC6C5ZlZwIjYe9FmXggg2gBjFt3+SKs4OMcA3kJC3RXCoQp2BMNq1wPyZoSCF iKGOGUyAnKYtN7IpDtNfEqVVOapw12titAkkceP8fskfFMSZ8HHhA+Hvgc5HHwNIKOV3 wD0F6Jhk/d93DXvAELQOTbrMdZp1/Ux85j9ZDnQVf7b8MsEe6JHnAXNUXgxhu9qi157k Eds6hBAjL3F11ZCWcnpdobresEsT91qbXGIjmU5Rijz6vjJT66++VTTzeabfVtzndwJx ZiDs4ykRADbpJK7qP7bTWd7xb5jEmSw8k1GjvLOSrrAMh2DuW6uwrYIXEAUtJY+7PoUm F1Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=4S5z7aao9JtRTzgGy7LTGnF5P5NrGVNf7mjrImDUeOE=; b=l2pjQSLL5AGeqUylplbhlWx8YE3aGKW0/71S9hOVB/noMkw5dkQBkPnUNpgMFeTcfR nj7nBajVSMkjW8ZxbWLnrJjRUvbglKEiP+TEe/1642MZQzLe7clI4VEthzgeYpiK/SRH hGnURIpjpJHYaQ7U1UUVQt5nhYdUFwEoaef+CQX2X6J76ypYC9zrFwG1/4U8wHIK79c2 taD1WrxzHxogcWCXoIg81MQZ7319eL9CbVbMjW0cBg/PFB05+yqdIrf7r9aSbgVFXI0e RZaRHIC5Zp+d/alqtoZgf6gsDF5rkDyVhFOq5FRlq/rjqXsV9a42WCaqmNooPzO9SMO6 eKpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22-v6si8338779plj.143.2018.03.05.13.51.12; Mon, 05 Mar 2018 13:51:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753163AbeCEVuC (ORCPT + 99 others); Mon, 5 Mar 2018 16:50:02 -0500 Received: from gateway31.websitewelcome.com ([192.185.143.47]:11527 "EHLO gateway31.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753121AbeCEVuA (ORCPT ); Mon, 5 Mar 2018 16:50:00 -0500 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway31.websitewelcome.com (Postfix) with ESMTP id B8CFD45BB8 for ; Mon, 5 Mar 2018 15:49:59 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id sxzbetYvjRMsBsxzbeAtOF; Mon, 05 Mar 2018 15:49:59 -0600 Received: from 187-162-245-224.static.axtel.net ([187.162.245.224]:41278 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.89_1) (envelope-from ) id 1esxzb-001wMv-7q; Mon, 05 Mar 2018 15:49:59 -0600 Date: Mon, 5 Mar 2018 15:49:59 -0600 From: "Gustavo A. R. Silva" To: Steffen Klassert , Herbert Xu , "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] xfrm_policy: use true and false for boolean values Message-ID: <20180305214959.GA14055@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 187.162.245.224 X-Source-L: No X-Exim-ID: 1esxzb-001wMv-7q X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 187-162-245-224.static.axtel.net (embeddedor) [187.162.245.224]:41278 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 17 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- net/xfrm/xfrm_policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index eb88a7d..8a0ac6a 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -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(); -- 2.7.4