Received: by 10.223.185.116 with SMTP id b49csp299366wrg; Fri, 2 Mar 2018 19:39:55 -0800 (PST) X-Google-Smtp-Source: AG47ELu+3AONlmoZ+zbjw5ziKhbpEFne7H9s6G9BJ5nU8wl/HawcEAYmfDHH8NGBvd4TbSiy35wa X-Received: by 10.101.66.193 with SMTP id l1mr6174238pgp.57.1520048395778; Fri, 02 Mar 2018 19:39:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520048395; cv=none; d=google.com; s=arc-20160816; b=ONMDFfEovBjDnKl7FniHO9WozCzU+wKVTh2/0lO46oLCqMQ2jv9TMjvkSsuw2xSjCi 9HJA5dGLE8zXMO5IHBlPHNlafj8DV9E8V2s0IVTi/XAULvM9bowwm0qnp88FkPVmIjQq ho754ShvPH/RukIh4inZtw7yqLdegyyGvCh8pw4KIuEp3+iAZq0NTk/zdTpOJHA6hrY4 TWuf/1MAW9q+bnPANDwlLZZOB3+EzV9PTSfDHG0EhVeRKDY3RTbyKEA2H4MsJGpBoEDg AeGNov10MIdEKRwDtOT64jB64V5XK/XRkuke8nPlCDArtWt4cyIAx20eMlAsktmurkTF aJSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Z+uwSKdrKkmBWydQ6Ix/Xy9CmG0gZ5Nt1qdKWJAyiKE=; b=XMAlxlG+m/vt2jgcOP6TjvWHVcd5JSCjIduJH6dumThTXVeeZisg5MQNVZvVanA1L8 GVsBotkirJDBaD21NIy7X0IcnePj4+n5b2saRrbesIjLcuv/iI/0sVxy47XXiPsr6kx3 wgvqttJ1JbisiPbPwCUknVYKlLqR9PoIDxQ8HxCbgfZUWPTrHiKSDO1S5TGlAnKM3kYp jSNjZFWbFTG/1D7Nd+WBNjarC7wrGLkIBq8tAAuHnsdI99hN0Dnr6T9cRq9VlEITNHkg aU1WgmEW2pphIZe38/bfSFYLYMX2lwYLbSDvJl61X8mkr0J8Sgd/8V/Tj/6jyJLZixus /niA== 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 t199si4916509pgb.105.2018.03.02.19.39.39; Fri, 02 Mar 2018 19:39:55 -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 S933198AbeCBWss (ORCPT + 99 others); Fri, 2 Mar 2018 17:48:48 -0500 Received: from mga07.intel.com ([134.134.136.100]:4937 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932882AbeCBWsr (ORCPT ); Fri, 2 Mar 2018 17:48:47 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2018 14:48:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,414,1515484800"; d="scan'208";a="31052062" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by FMSMGA003.fm.intel.com with ESMTP; 02 Mar 2018 14:48:44 -0800 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1ertTv-000E0u-IU; Sat, 03 Mar 2018 06:48:51 +0800 Date: Sat, 3 Mar 2018 06:48:09 +0800 From: kbuild test robot To: Matt Porter Cc: kbuild-all@01.org, Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Rob Herring , Mark Rutland , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: fix boolreturn.cocci warnings Message-ID: <20180302224809.GA27408@lkp-sbx04> References: <20180227225128.17815-3-mporter@konsulko.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180227225128.17815-3-mporter@konsulko.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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fengguang Wu sound/soc/codecs/tda7419.c:151:9-10: WARNING: return of 0/1 in function 'tda7419_vol_is_stereo' 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 Fixes: d811df0fabec ("ASoC: add tda7419 audio processor driver") CC: Matt Porter Signed-off-by: Fengguang Wu --- tda7419.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/sound/soc/codecs/tda7419.c +++ b/sound/soc/codecs/tda7419.c @@ -148,9 +148,9 @@ struct tda7419_vol_control { static inline bool tda7419_vol_is_stereo(struct tda7419_vol_control *tvc) { if (tvc->reg == tvc->rreg) - return 0; + return false; - return 1; + return true; } static int tda7419_vol_info(struct snd_kcontrol *kcontrol,