Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1947780imm; Sat, 4 Aug 2018 14:54:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf6xLXWEJ0zejWWwAJBKtfW8XRRQ0HCpaDunZNRwxE9qy0+sBw/kc/YiklixfHffZH/rIq/ X-Received: by 2002:a17:902:7683:: with SMTP id m3-v6mr8328510pll.255.1533419649434; Sat, 04 Aug 2018 14:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533419649; cv=none; d=google.com; s=arc-20160816; b=taXW8Rc67vZxO/89EoHiVBN2AYiXDmqRs20lDw5Pz72Kb+ItR3vgAmORr0xNFZ+jAB JrUmb6B9jM78Uz4Luv43U05sdLMD068IpImgjv5HQg95XG2FzlU3LBMyrY2MGQ0mt4GD /nUrqeOJVA3Tkk5e6fTbe+ueOTgmgBmHs+Bf1Kml2fpoQ/ibkb3ZN8rMf6MBw1Nx/+zI rF5EDmXXoKe72nGF4v/3Qt0COIg/cEEI04Lfohxl9fXS9M7rh9cFMYxPJP2R4m6EyPIf KaMV/J5TFWLT/xr6sB8PtlNKaHlz+gRm2FIrY5/KfIO61WOMxEj2F2/YXpJeeF8VFwaz 3TPA== 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=diRb3kW10vKJPQKNTji8FuBR3fBU7WyWMHXTSv7gJKU=; b=sVqcsqTQHjJxbnxDXfhAorrmKNFLXY46RQvK1ftc7HXSEYLthXneR7m0OqNUMqFuv9 CAVxTlmpD6pQVi3qSShROyyQXFPxcSyOPe62gPYEZnNMqCATdymU76HwE7jI7w7HIFgA /dln/4U42OA5TEIMrBDDjC3aKj7US2lQ7bCGMy1teLVptZMSQlkUgiX0GucHa6BQt6ho KB0Fqj0sITHxy4g5ynmWwcTM2swl3jbA7M755QlMCCVKJ6zhjKksHyr8TWbwce6BDXWc Z3S3B8YxQ0oF8T5gwtNRNTWYGR5L6KILHRlQktvopy/mo2D2+73ZVbeR/r2OyoIoGOkv XCTg== 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 g92-v6si6472066plg.66.2018.08.04.14.53.55; Sat, 04 Aug 2018 14:54:09 -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 S1729907AbeHDXym (ORCPT + 99 others); Sat, 4 Aug 2018 19:54:42 -0400 Received: from gateway36.websitewelcome.com ([192.185.179.26]:48766 "EHLO gateway36.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728882AbeHDXyl (ORCPT ); Sat, 4 Aug 2018 19:54:41 -0400 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 1989D400C6F04 for ; Sat, 4 Aug 2018 15:55:16 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id m4TUfTQD479N3m4TUfmSde; Sat, 04 Aug 2018 16:52:36 -0500 X-Authority-Reason: nr=8 Received: from [189.250.50.82] (port=33796 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fm4TT-002lis-OH; Sat, 04 Aug 2018 16:52:35 -0500 Date: Sat, 4 Aug 2018 16:52:35 -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: patches@opensource.cirrus.com Subject: [PATCH 06/12] ASoC: wm8996: use true and false for boolean values Message-ID: 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: 1fm4TT-002lis-OH X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.50.82]:33796 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 53 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/wm8996.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c index 78a4082..91711f8 100644 --- a/sound/soc/codecs/wm8996.c +++ b/sound/soc/codecs/wm8996.c @@ -1498,9 +1498,9 @@ static bool wm8996_readable_register(struct device *dev, unsigned int reg) case WM8996_RIGHT_PDM_SPEAKER: case WM8996_PDM_SPEAKER_MUTE_SEQUENCE: case WM8996_PDM_SPEAKER_VOLUME: - return 1; + return true; default: - return 0; + return false; } } @@ -1522,9 +1522,9 @@ static bool wm8996_volatile_register(struct device *dev, unsigned int reg) case WM8996_MIC_DETECT_3: case WM8996_HEADPHONE_DETECT_1: case WM8996_HEADPHONE_DETECT_2: - return 1; + return true; default: - return 0; + return false; } } -- 2.7.4