From patchwork Wed Jul 6 02:49:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kbuild test robot X-Patchwork-Id: 16487 X-Patchwork-Delegate: mareklindner@neomailbox.ch Return-Path: X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from open-mesh.org (localhost [IPv6:::1]) by open-mesh.org (Postfix) with ESMTP id 7F85280640; Wed, 6 Jul 2016 07:12:19 +0200 (CEST) Authentication-Results: open-mesh.org; dmarc=none header.from=intel.com Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.88; helo=mga01.intel.com; envelope-from=fengguang.wu@intel.com; receiver=b.a.t.m.a.n@lists.open-mesh.org Authentication-Results: open-mesh.org; dmarc=none header.from=intel.com X-Greylist: delayed 587 seconds by postgrey-1.35 at open-mesh.org; Wed, 06 Jul 2016 05:00:21 CEST Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by open-mesh.org (Postfix) with ESMTP id 0BA5E8054F for ; Wed, 6 Jul 2016 05:00:20 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 05 Jul 2016 19:50:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.28,317,1464678000"; d="scan'208"; a="1001577918" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga001.fm.intel.com with ESMTP; 05 Jul 2016 19:50:31 -0700 Received: from kbuild by bee with local (Exim 4.83) (envelope-from ) id 1bKcuq-000HW5-Ig; Wed, 06 Jul 2016 10:50:20 +0800 Date: Wed, 6 Jul 2016 10:49:29 +0800 From: kbuild test robot Message-ID: <20160706024929.GA25250@lkp-nex05> References: <201607061025.fb3YfL1g%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201607061025.fb3YfL1g%fengguang.wu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false X-Mailman-Approved-At: Wed, 06 Jul 2016 07:12:17 +0200 Cc: Marek Lindner , netdev@vger.kernel.org, b.a.t.m.a.n@lists.open-mesh.org, Antonio Quartulli , linux-kernel@vger.kernel.org, kbuild-all@01.org Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: fix boolreturn.cocci warnings X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking Errors-To: b.a.t.m.a.n-bounces@lists.open-mesh.org Sender: "B.A.T.M.A.N" net/batman-adv/bridge_loop_avoidance.c:1105:9-10: WARNING: return of 0/1 in function 'batadv_bla_process_claim' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci CC: Sven Eckelmann Signed-off-by: Fengguang Wu Reviewed-by: Sven Eckelmann --- bridge_loop_avoidance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -1102,7 +1102,7 @@ static bool batadv_bla_process_claim(str /* Let the loopdetect frames on the mesh in any case. */ if (bla_dst->type == BATADV_CLAIM_TYPE_LOOPDETECT) - return 0; + return false; /* check if it is a claim frame. */ ret = batadv_check_claim_group(bat_priv, primary_if, hw_src, hw_dst,