Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1947366imm; Sat, 4 Aug 2018 14:53:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdrukHItJa3+3ZNeMOtKK/8dJEHLjMJzGT7Io01pU6YJRH0gBrX9m2fH+HcFlcVw0jQMp8Y X-Received: by 2002:a63:65c2:: with SMTP id z185-v6mr8868142pgb.276.1533419605498; Sat, 04 Aug 2018 14:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533419605; cv=none; d=google.com; s=arc-20160816; b=iEWFXxPSTy+0jpzPv8OTC4g7P0avM3UAemziUSkkeUYBqrojxBdlvxliebZ5NkYL9P mcb1JvZvMs++igl4XUtNFqlCuJ8VZskvAaNAcp8Kgo9NogWHUvlHFSfWcexNIC7sLjrJ c17QY2F8jQ3CdahzYCE/u110NRATx7ynnnBQD9ofoRtwK1s1a1ZyVV/1+TUKcT8QUqGI YT7nl8v4GEU4rWFqFLs7eJMNWsKdaHgrSAFzni+Y55y+C65NNGoRg9NdeP5VIg3FiO0L 37CzYsKIXq6Y5le6NIjf/jVTtUAEtkjUm56LvXWdU/M5VWOPWnuq9m3FRtUmVg3uCiiA 2ETg== 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=FTpc04mqQi8dlvAUSNcGrO9mkoMGYatSc9Q57GJso7k=; b=MVzN0QSnIL3iF6soy1pAcNfv0ptQeWXUOFl5BvbQt5RnAfLyJy/5LF9nO/xgmRLfWG rvo2vgkLIKyPBe8gscf/zjQEj6PlBquqw26/IMWj5cXYtGpNkZNgQEH5NdO6V6fSSrsF VbPqaq8LM81KI9h8scTkzFvQxBOGnhxQJ/Rp83OmZFNSpLwTvLGoFLl5ISHURJNdL7Mh r6Dg6vQ0hZDtI99L6A38RfKcTfbXXT8cNSSG3WGNr+45J+DBk/mkIaqSpo8UgyrdSNDM 0uDeOLO+DrCLqMLP9iwDoA47XmwlO+2Z3G9ekcM1DbvUsaxd6ZW6F3at03B/Tj0d0W9J MAAg== 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 d26-v6si8515439pgb.571.2018.08.04.14.53.10; Sat, 04 Aug 2018 14:53:25 -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 S1729729AbeHDXxK (ORCPT + 99 others); Sat, 4 Aug 2018 19:53:10 -0400 Received: from gateway31.websitewelcome.com ([192.185.143.39]:38821 "EHLO gateway31.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728882AbeHDXxJ (ORCPT ); Sat, 4 Aug 2018 19:53:09 -0400 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 92F255C6A9 for ; Sat, 4 Aug 2018 16:51:04 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id m4S0fuuW3RPojm4S0fPaJ7; Sat, 04 Aug 2018 16:51:04 -0500 X-Authority-Reason: nr=8 Received: from [189.250.50.82] (port=33786 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fm4Ry-002lCp-Ro; Sat, 04 Aug 2018 16:51:03 -0500 Date: Sat, 4 Aug 2018 16:51:01 -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 04/12] ASoC: wm8990: use true and false for boolean values Message-ID: <3d81e99b93dbe0d5b84083d3fdf6c86b44f210ef.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: 1fm4Ry-002lCp-Ro X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.50.82]:33786 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 38 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/wm8990.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wm8990.c b/sound/soc/codecs/wm8990.c index 411b9ee..457bc43 100644 --- a/sound/soc/codecs/wm8990.c +++ b/sound/soc/codecs/wm8990.c @@ -40,9 +40,9 @@ static bool wm8990_volatile_register(struct device *dev, unsigned int reg) { switch (reg) { case WM8990_RESET: - return 1; + return true; default: - return 0; + return false; } } -- 2.7.4