Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3074791pxf; Mon, 15 Mar 2021 00:07:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7V2tyWVeovrsCyZBDsEX5K0AAIPpwekt77opzeKLEIwx3ilzKua7hRz68apYTSPMoKAi0 X-Received: by 2002:a05:6402:68e:: with SMTP id f14mr28168721edy.169.1615792055947; Mon, 15 Mar 2021 00:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615792055; cv=none; d=google.com; s=arc-20160816; b=wtSc/Tze4YONEcwdPjFArTjzNOHcA3myzK9ElVjCCJjn+QmKfk5b0lZbwkLko40+xf AhlGDp9UPdnjsm0/wM2uJ+QJttKkEe+ngq3BmBaI8I//PbHfr7/CAWaSkwrbzsRhY6tF nfzo6xjwFTIfK5bJKJRjr81GGnj/ffm856l8NhpWn481ESIGmFfqkFjSEYxGRRWBQgTM /yIep2sVYgaWeZvIOg7l/g03vP2jJQ9EJ0pjMXwc2JkQdyXfcuRc4FmiLUOyDSAk6nzh J5718OTS8To8v7NDN3DFw0SIdPz70BggQ6tPD1p2dgFq8JtZCjucAWUREBJZLp8SK1Xc 8X7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=TAiomQGJFHVOKPBYO41D4g9VVbadx2QbHFsQpEIJo/8=; b=mT7ZOVHpdi12eG9fYkBil8do2kxDcMA7mSp47GyZ8bkzFw8Ehv5TNzBOWFotwNjHOw Rd/TVtz7Nx+tz7I0w74ubWx2Xh0bNWpficloUxnJYjodTcZlmn4Nu9u4WTV6lhOn1N15 GOysnIaHybUg6AMrHtSJzfoZAz9H+joieEmvYfcbZoSNX29DuKbcj1G6w6riII3zzDKx 0bMnzRQ/2SKHOaVw50GGBRzDhYK4ArmpOb0olq6C7HIbw2Tjl7MlQ+vdS8mJr5HdjKBS yrhKOQKegbebnZTcTCQoewkK5E2memUOMXvck50P8pSuBGmUjd6UKhk1mNya1f8sYBDi OltQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s7si10643883eds.267.2021.03.15.00.07.13; Mon, 15 Mar 2021 00:07:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229876AbhCOHGN (ORCPT + 99 others); Mon, 15 Mar 2021 03:06:13 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:44538 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbhCOHFq (ORCPT ); Mon, 15 Mar 2021 03:05:46 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R991e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0URunCVN_1615791943; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0URunCVN_1615791943) by smtp.aliyun-inc.com(127.0.0.1); Mon, 15 Mar 2021 15:05:44 +0800 From: Yang Li To: tony@atomide.com Cc: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] ARM: OMAP2+: use true and false for bool variable Date: Mon, 15 Mar 2021 15:05:41 +0800 Message-Id: <1615791941-62388-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fixed the following coccicheck: ./arch/arm/mach-omap2/powerdomain.c:1205:9-10: WARNING: return of 0/1 in function 'pwrdm_can_ever_lose_context' with return type bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/arm/mach-omap2/powerdomain.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c index 1cbac76..0a5b87e 100644 --- a/arch/arm/mach-omap2/powerdomain.c +++ b/arch/arm/mach-omap2/powerdomain.c @@ -1202,26 +1202,26 @@ bool pwrdm_can_ever_lose_context(struct powerdomain *pwrdm) if (!pwrdm) { pr_debug("powerdomain: %s: invalid powerdomain pointer\n", __func__); - return 1; + return true; } if (pwrdm->pwrsts & PWRSTS_OFF) - return 1; + return true; if (pwrdm->pwrsts & PWRSTS_RET) { if (pwrdm->pwrsts_logic_ret & PWRSTS_OFF) - return 1; + return true; for (i = 0; i < pwrdm->banks; i++) if (pwrdm->pwrsts_mem_ret[i] & PWRSTS_OFF) - return 1; + return true; } for (i = 0; i < pwrdm->banks; i++) if (pwrdm->pwrsts_mem_on[i] & PWRSTS_OFF) - return 1; + return true; - return 0; + return false; } /** -- 1.8.3.1