Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1946559imm; Sat, 4 Aug 2018 14:51:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdPrFszFNJHYWnQk7YJVLRA8Yf6AYCYSUYgO99NUjcQd5tFURtlwi1iv4CSeb0tksphtJ7j X-Received: by 2002:a63:fb07:: with SMTP id o7-v6mr9076394pgh.333.1533419508669; Sat, 04 Aug 2018 14:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533419508; cv=none; d=google.com; s=arc-20160816; b=J4Kx/Hu+tD/aZDDm4ksdX5jWNkP/VPXBj5HFgELHy4/ccbIEo6Wjf6bEni2LAA30cG cEVrszaPTyJEjLiTpnYLyhBFf/W59jP+LIuvNIFzway2lxrjfP8oWvSQfODKigVE9fBl NvLTXOes5Q4aFSPqHd3cjUBpcBCthEln0JT9KksC9CpQ1+KICkGOJ/13JRdT/GDoX9cr v9Go6JNEHmb3ofByGIaTFXsVUx55sUA3R5DUsiwkdvubv5UumD5aic7DuolZ0F9D/Dxd UwAtfa5jonYovIQEuFHgI594WtwcmiHcs10zFIpBRgGA9eevLR2AY+EC+pms6FtddDfe RPOw== 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=Xcd7Lbs/Wxqnw3FqN94YJwwPKqWCMFFjV9iYM43AHuo=; b=sC4ZcazN2r8ANGFY0EOaDsLHLhWx2vAbtIQI+Zx38534Ah58wP5piEHuL9cVrta6H+ CFOu/DMbfTRDsTctIEnvGP5imltg3N9+uTfXj21fEzB9eKBO2VL0Dsmd+Vvg7sOF+x/R G5dwZMtB0YNUitktc2tV3D++Cb1gR2z6XLvKXzofEIE6P1za8fu4nUwBILb9uLC5Zelp T6jAFl8URs4inqg9x1e1u6bagNT1KCnpoWckuhgeHOHK3X+/x6URdgAmY8LBEqY7ZEMF /8srxdBjV95VSuLm9BSKjbbAyB4fCzRNSQxweMa93dqHvlIUlJcZGBwV2VscGvXRiE9G hVIg== 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 71-v6si7287597plb.230.2018.08.04.14.51.34; Sat, 04 Aug 2018 14:51:48 -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 S1729737AbeHDXvI (ORCPT + 99 others); Sat, 4 Aug 2018 19:51:08 -0400 Received: from gateway36.websitewelcome.com ([192.185.179.26]:21649 "EHLO gateway36.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728883AbeHDXvI (ORCPT ); Sat, 4 Aug 2018 19:51:08 -0400 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway36.websitewelcome.com (Postfix) with ESMTP id D54DD400D779A for ; Sat, 4 Aug 2018 15:51:43 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id m4Q4fTOIn79N3m4Q4fmQkw; Sat, 04 Aug 2018 16:49:04 -0500 X-Authority-Reason: nr=8 Received: from [189.250.50.82] (port=33772 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fm4Q3-002kWK-Kf; Sat, 04 Aug 2018 16:49:03 -0500 Date: Sat, 4 Aug 2018 16:49:02 -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 01/12] ASoC: max9850: use true and false for boolean values Message-ID: <99d07804559a7dfd13658f76b2071aef32b92204.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: 1fm4Q3-002kWK-Kf X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.50.82]:33772 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 18 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/max9850.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/max9850.c b/sound/soc/codecs/max9850.c index 74d7f52..6e61345 100644 --- a/sound/soc/codecs/max9850.c +++ b/sound/soc/codecs/max9850.c @@ -52,9 +52,9 @@ static bool max9850_volatile_register(struct device *dev, unsigned int reg) switch (reg) { case MAX9850_STATUSA: case MAX9850_STATUSB: - return 1; + return true; default: - return 0; + return false; } } -- 2.7.4