Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1946695imm; Sat, 4 Aug 2018 14:52:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcVjh3IQNtxV/dMZ1wql7yiK00bQNpbO8YGh9+78KkEgdOf1a8Hbf6/POr8xKFDHPiUfEJ2 X-Received: by 2002:a17:902:50ec:: with SMTP id c41-v6mr8501566plj.269.1533419525434; Sat, 04 Aug 2018 14:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533419525; cv=none; d=google.com; s=arc-20160816; b=lvlVxC2LFjjBiYsrWoC09B7KRLvdHQyNDm1X/d8JwPFWevBOgAiinvl5DltYOOND8B yFZN1aZ+tlf3JoWn2biDYwF8oaa76h9XSHApHzdoQt8as0aVy8SQ9k8iCPIbHpLJd6DZ CpZd+LGUdfdmNr7dop6lWGRI+3hhzJyoOtlRs5Frc5odasq/4o6ZZH+l8G9lNMZGEJUW 0jHpGo0cvpYKzKV4V7//72ccEOSRO3Le5iyeTgi+E5KATY3b00SdGvK4ydeDcizTwX9K uNGMkgx438cAKLm1qs664dRRvM/Dv99QZ6PKTpENDhlOTbICkmb269Z4plYsWBNNIoQc ElxA== 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:to :from:date:arc-authentication-results; bh=8LGeNSoWYOOjFwHua4kaISBTs8vPHF/2NDMEUrGy8pc=; b=bSRfq5GpWO+NNKS3eASTNNSbelFXoL2Vg+GfnedXoAm7WcmCP2cyeQKqZnLvrAP2ML DjJ2shlDc3rpNh5R78JiCDjbvGEwvfvnlkDcDOlKbtV0lcP4FsPcY1yKHDV/wM0A/tMS YvTDyWkl3R9FaLQD8bYTYLV1IYL9MaiX3WzsIxcIffveTQVQ8Z+bkZyIeHqgBnbpu2y9 c2+diSbuJPZlHawssK9sBs8JxSYuwQ++hs/KpIl5XskCxeMETzulxMsU3K5hpYhzFSYo Tqm1bduazDYpcLTxqUEpd7iETgMMM6jwv8CbseVv8pYjCcQoBKTc4Tjz8bOWzcZLR4vV egbw== 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 a5-v6si7078272pla.167.2018.08.04.14.51.51; Sat, 04 Aug 2018 14:52:05 -0700 (PDT) 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 S1729755AbeHDXwe (ORCPT + 99 others); Sat, 4 Aug 2018 19:52:34 -0400 Received: from gateway30.websitewelcome.com ([192.185.149.4]:14354 "EHLO gateway30.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728883AbeHDXwd (ORCPT ); Sat, 4 Aug 2018 19:52:33 -0400 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway30.websitewelcome.com (Postfix) with ESMTP id 8075DA8C7 for ; Sat, 4 Aug 2018 16:50:28 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id m4RQfOPK1SjJAm4RQf82lB; Sat, 04 Aug 2018 16:50:28 -0500 X-Authority-Reason: nr=8 Received: from [189.250.50.82] (port=33782 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fm4RP-002kyy-Uk; Sat, 04 Aug 2018 16:50:28 -0500 Date: Sat, 4 Aug 2018 16:50:27 -0500 From: "Gustavo A. R. Silva" To: alsa-devel@alsa-project.org, Takashi Iwai , Jaroslav Kysela , Liam Girdwood , Mark Brown , "Gustavo A. R. Silva" , linux-kernel@vger.kernel.org Subject: [PATCH 03/12] ASoC: tda7419: use true and false for boolean values Message-ID: <416bb8bb94ce77ee42986942de717101dd78b4a4.1533418275.git.gustavo@embeddedor.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: 189.250.50.82 X-Source-L: No X-Exim-ID: 1fm4RP-002kyy-Uk X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.50.82]:33782 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 32 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 Return statements in functions returning bool should use true or false instead of an integer value. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- sound/soc/codecs/tda7419.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/tda7419.c b/sound/soc/codecs/tda7419.c index 225c210..7f3b79c 100644 --- a/sound/soc/codecs/tda7419.c +++ b/sound/soc/codecs/tda7419.c @@ -142,9 +142,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, -- 2.7.4