From patchwork Mon Nov 30 18:40:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 7729171 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2AF28BEEE1 for ; Mon, 30 Nov 2015 18:41:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 590B320591 for ; Mon, 30 Nov 2015 18:41:53 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 0E6D22058A for ; Mon, 30 Nov 2015 18:41:52 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 89A5A265887; Mon, 30 Nov 2015 19:41:48 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 7291E2619EA; Mon, 30 Nov 2015 19:41:41 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id ADB712650BC; Mon, 30 Nov 2015 19:41:39 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by alsa0.perex.cz (Postfix) with ESMTP id 8229526156A for ; Mon, 30 Nov 2015 19:41:32 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP; 30 Nov 2015 10:41:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,365,1444719600"; d="scan'208";a="697125551" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by orsmga003.jf.intel.com with ESMTP; 30 Nov 2015 10:41:27 -0800 Received: from kbuild by bee with local (Exim 4.83) (envelope-from ) id 1a3TO6-0009vo-3q; Tue, 01 Dec 2015 02:41:22 +0800 Date: Tue, 1 Dec 2015 02:40:51 +0800 From: kbuild test robot To: Adam Thomson Message-ID: <20151130184051.GA18104@lkp-ib04> References: <201512010249.CKNe08uI%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201512010249.CKNe08uI%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 Cc: alsa-devel@alsa-project.org, Support Opensource , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , Mark Brown , kbuild-all@01.org Subject: [alsa-devel] [PATCH] ASoC: da7218: fix boolreturn.cocci warnings X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP sound/soc/codecs/da7218.c:3214:9-10: WARNING: return of 0/1 in function 'da7218_volatile_register' 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: Adam Thomson Signed-off-by: Fengguang Wu --- da7218.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/sound/soc/codecs/da7218.c +++ b/sound/soc/codecs/da7218.c @@ -3211,9 +3211,9 @@ static bool da7218_volatile_register(str case DA7218_HPLDET_TEST: case DA7218_EVENT_STATUS: case DA7218_EVENT: - return 1; + return true; default: - return 0; + return false; } }