Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1948517imm; Sat, 4 Aug 2018 14:55:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdBG+t/HlXWgUi4Jzq4MdTrreucRJ3Xlgj1qL+pwJEXOVaxEtRzkQ1YThGCNeXNl+r70wy3 X-Received: by 2002:a17:902:904c:: with SMTP id w12-v6mr8503372plz.95.1533419732441; Sat, 04 Aug 2018 14:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533419732; cv=none; d=google.com; s=arc-20160816; b=eXNzbO5LAQn2JNKEDAO57Lji2M60/6qTtabY+YlTABhBL8yQLMnhTPPBYHAjvoLtUZ qeqogEw1G5TLwLerf6Qe5+41JmY+9AuFBtUfiXcPIzHrS6OgorZuyArzbf/CTA4GBtjJ wWB+gGMu9Xzi0NiULvi11CDHQPdtR/KxnRe6hoEx0Our0aJWce20Pp1S6R6iylnECBwr 3ib0C5qUm96z8Z8Eb0S7HaPXw+s6s/rB/AdyE3cCj38W8wO2OGWXH1lr9I1J5DimimTG PLenDQd5eAobaxdSifBSZc3bXUi9tPbqpH+Hsv/sTpeYM4V6+eDDs/ednxNWzzi1Q0B1 MKUA== 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=vb1/AfdUgPQZUTHZNdsuG4oJXwFvG4pahikatz0YBkc=; b=q7uy7E1QTLD1/4m+AzJfKz711FocaiNw7O0rQyQ8dhsfzzhOpyYwiDVuHxd3SR6sSM nLfqF8C9C1yB7dcqcQqqB7nWdI5wSrK4pWsFD9C7KRGvVgfJfY1XSHVxN2oj5P4JvPik QOkuzBjPYpMypOJt4Jpdn6ChVM1ANwUjROdDA6po4+mYjIE1AqegCO1d8rYj+vCVLx9g nnmJwObT+Xdl+UWE29fdoiLnL5VlmdINOUSv7tFERjiU+fIa5mSMmX1oMuOoyK1KFG34 hzaFNXDx/ISSWv3dp8WGEKn5pJBxDrg6ty9lwsOygEXuF8i4yZP/BrorYQNrkD/q1S+8 /VkQ== 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.55.18; Sat, 04 Aug 2018 14:55:32 -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 S1729724AbeHDX4R (ORCPT + 99 others); Sat, 4 Aug 2018 19:56:17 -0400 Received: from gateway36.websitewelcome.com ([192.185.179.26]:48490 "EHLO gateway36.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728882AbeHDX4R (ORCPT ); Sat, 4 Aug 2018 19:56:17 -0400 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 58958400D1628 for ; Sat, 4 Aug 2018 15:56:51 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id m4V1fTR9O79N3m4V1fmTZG; Sat, 04 Aug 2018 16:54:11 -0500 X-Authority-Reason: nr=8 Received: from [189.250.50.82] (port=33804 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fm4V0-002mDt-Vs; Sat, 04 Aug 2018 16:54:11 -0500 Date: Sat, 4 Aug 2018 16:54:10 -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 Cc: Support Opensource Subject: [PATCH 09/12] ASoC: da7213: use true and false for boolean values Message-ID: <054adeac54eba2831e2433d71f385841034faf52.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: 1fm4V0-002mDt-Vs X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.50.82]:33804 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 73 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/da7213.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/da7213.c b/sound/soc/codecs/da7213.c index 54cb5f2..92d006a 100644 --- a/sound/soc/codecs/da7213.c +++ b/sound/soc/codecs/da7213.c @@ -1140,9 +1140,9 @@ static bool da7213_volatile_register(struct device *dev, unsigned int reg) case DA7213_ALC_OFFSET_AUTO_M_R: case DA7213_ALC_OFFSET_AUTO_U_R: case DA7213_ALC_CIC_OP_LVL_DATA: - return 1; + return true; default: - return 0; + return false; } } -- 2.7.4