Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2055387imm; Sat, 4 Aug 2018 18:03:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc4tnk6A1CvvPMkszq0WrAwsfIkCArYpUJpPZyqE9UxWWlu+MUPz+qklO0tPRvgaDUOPywe X-Received: by 2002:a63:788b:: with SMTP id t133-v6mr9254046pgc.329.1533430987535; Sat, 04 Aug 2018 18:03:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533430987; cv=none; d=google.com; s=arc-20160816; b=dDIc6i5UTu8EKN0PORAEm7h2HypDJBWg6Hqz/whsB40mFkH6QA2EdwLAMVTvu/Pv8i OrBR/vi8KlhDTblxroAd31Wwgo9e2w2ZSLnMNzrkWGE+FVTu++5bLCI3WWrKAkVyUBHD TwIgpTrjRTwpDvWin1uFoRgGK4xy79dv8/907N71n8moocQrKomeQfcPpPxNEBcZ0zvM L1J2Xsg74D72x+PqZ3/4YxdXNQD9+VBR+rCPVQk59dxfzhwIisiw/m2l00pVPhxltrRZ PqKgjsIfpnQSv/CCNTv0Vhl2CqTj3vbmCAWufshv86/aePCkQ5UdD/LwbJibV/AN5cYg jiLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=hjctnWZES367xRrcoXmIg/bCDytjxDHzVC6QJggQ/Lo=; b=TYZuAGMBR18GKkVL4kR9K0jZzoTQr5Jg11nwHYS2PittxCChOvv7kxQJuAJw9UQRNQ Epi0zY07UrkqyQJnk92sPDsz23VOlpFq7isxbVKODdDLSV/Wn//0greVQbqhg+4Zo0Rj OEGy9+Dsap1XWSKV7/Th9LVxFp6iuzjLPKmbgxfFBbMjXCmxMnFMIpW/Fm/hxhxGZXnS WmfGif5ZRMkyR2Ngki7zxT+gKVQLdsB2Mz8Y7pSfuQvTGJRXvqdFAmx9l/Q1ndyk9j0Y WXXjDYTYPSOQ5QeZcPdR4JWzz1kSvWv7uLDxs9ycuxGvtdHzJb1A36nPUpQNCCjpquSy OsZQ== 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 u68-v6si9464046pgb.191.2018.08.04.18.02.52; Sat, 04 Aug 2018 18:03:07 -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 S1726769AbeHEDEl (ORCPT + 99 others); Sat, 4 Aug 2018 23:04:41 -0400 Received: from gateway33.websitewelcome.com ([192.185.145.190]:27334 "EHLO gateway33.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726084AbeHEDEl (ORCPT ); Sat, 4 Aug 2018 23:04:41 -0400 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 3CD553DE686 for ; Sat, 4 Aug 2018 20:02:04 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id m7Qqfdwe7kBj6m7QqfwOGb; Sat, 04 Aug 2018 20:02:04 -0500 X-Authority-Reason: nr=8 Received: from [189.250.50.82] (port=35498 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fm7Qp-003sEQ-MN; Sat, 04 Aug 2018 20:02:03 -0500 Date: Sat, 4 Aug 2018 20:02:01 -0500 From: "Gustavo A. R. Silva" To: Matthias Brugger Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] soc: mediatek: pwrap: use true and false for boolean values Message-ID: <20180805010201.GA7320@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: 1fm7Qp-003sEQ-MN X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.50.82]:35498 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 4 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 issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/soc/mediatek/mtk-pmic-wrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c index 4e931fd..932470a 100644 --- a/drivers/soc/mediatek/mtk-pmic-wrap.c +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c @@ -1096,7 +1096,7 @@ static bool pwrap_is_pmic_cipher_ready(struct pmic_wrapper *wrp) ret = pwrap_read(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_RDY], &rdata); if (ret) - return 0; + return false; return rdata == 1; } -- 2.7.4