Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp517130imm; Wed, 8 Aug 2018 00:37:00 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz7Mm8i7ThHLxo6DI9iCZ6EbEJ11yk0l5KqVJ3E7fN7+9ecQJvU5j4lJyPaoFzObFW9W8Tg X-Received: by 2002:a63:ba54:: with SMTP id l20-v6mr1444862pgu.145.1533713820688; Wed, 08 Aug 2018 00:37:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533713820; cv=none; d=google.com; s=arc-20160816; b=J4iqni59+rTVbA2O89fenJ8xEgk/W/f+oBxYpBRkyO3D6cLxRVhOFx92Co020NbiZ7 UtscikzGZ6hIN5QLTkU3TIy0buMmpwcsUCzHYaTvz5ylHwyU2IZ1gzprN8kHhi3CU1hb EM5F+ykz84kJ0sWWmBOnCzdhJHLJVZGvALfcTwTmBmUGYivD0TDKaBCbCvDDagJw2hmJ M6LTLeBNr6/XwN7EeusDuxKNqk+cSOPqIVoF/wRs29tS0GoC9PuFKj13un0mu/0jaJxb IY2u5GqPYovw6TOlwCVhx1cwBsxucJBH+u+814BcQCHf3McPl3UMLj94lHFvlcszcP+W vaiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=MnHHnIWR7Ocg2ArNm8ZhlC6med8WrCx5HF8mWbiBn/Q=; b=lcOrPmDprwuoUT78Ai+g3ocTZyEjOgO92IdrlXd/676IlMah58dz+Q/SY/r++Bjaqd pQgurkzwGDwvuhn4UhfmqyUu8nDESBH6gbGBTHOmTv5x6R3Da6L/Z+fcA5xfd1wcNPUg Sx94+QkUBLnuvl3G8Nn1EzDNaZbLMlTHPo3dJd0vzJRfzJrE9AhCgp4dunc6ixxRuESe 71169u4eMf3Nh3tHGO+n3/LmMDdo0KIfE62/sZ1VTgyCMUcVsns034itjFQ/7ije5dTI bjVjdwkvaJ3zGcIAseafB5YzNVsA47SY5T6JLRpTw10RhN9+XjzJvMITJHmOeqjjSwA0 rxsA== 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 n28-v6si3783109pfg.127.2018.08.08.00.36.45; Wed, 08 Aug 2018 00:37:00 -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 S1727026AbeHHJyV (ORCPT + 99 others); Wed, 8 Aug 2018 05:54:21 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33219 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726869AbeHHJyV (ORCPT ); Wed, 8 Aug 2018 05:54:21 -0400 X-UUID: 76b2755fcde64c22aa6869107975fdbc-20180808 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 644714097; Wed, 08 Aug 2018 15:35:44 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 8 Aug 2018 15:35:42 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 8 Aug 2018 15:35:42 +0800 Message-ID: <1533713742.3472.231.camel@mtkswgap22> Subject: Re: [PATCH] soc: mediatek: pwrap: use true and false for boolean values From: Sean Wang To: "Gustavo A. R. Silva" CC: Matthias Brugger , , , Date: Wed, 8 Aug 2018 15:35:42 +0800 In-Reply-To: <20180805010201.GA7320@embeddedor.com> References: <20180805010201.GA7320@embeddedor.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2018-08-04 at 20:02 -0500, Gustavo A. R. Silva wrote: > 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; > Acked-by: Sean Wang > return rdata == 1; > }