[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1577172735-18869-4-git-send-email-zhengbin13@huawei.com>
Date: Tue, 24 Dec 2019 15:32:12 +0800
From: zhengbin <zhengbin13@...wei.com>
To: <ulf.hansson@...aro.org>, <linux-mmc@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: <zhengbin13@...wei.com>
Subject: [PATCH 3/6] mmc: sdhci-msm: use true,false for bool variable
Fixes coccicheck warning:
drivers/mmc/host/sdhci-msm.c:1498:1-23: WARNING: Assignment of 0/1 to bool variable
drivers/mmc/host/sdhci-msm.c:1611:2-24: WARNING: Assignment of 0/1 to bool variable
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: zhengbin <zhengbin13@...wei.com>
---
drivers/mmc/host/sdhci-msm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
index 71f29ba..91f7ad7 100644
--- a/drivers/mmc/host/sdhci-msm.c
+++ b/drivers/mmc/host/sdhci-msm.c
@@ -1495,7 +1495,7 @@ static irqreturn_t sdhci_msm_pwr_irq(int irq, void *data)
struct sdhci_msm_host *msm_host = sdhci_pltfm_priv(pltfm_host);
sdhci_msm_handle_pwr_irq(host, irq);
- msm_host->pwr_irq_flag = 1;
+ msm_host->pwr_irq_flag = true;
sdhci_msm_complete_pwr_irq_wait(msm_host);
@@ -1608,7 +1608,7 @@ static int __sdhci_msm_check_write(struct sdhci_host *host, u16 val, int reg)
}
if (req_type) {
- msm_host->pwr_irq_flag = 0;
+ msm_host->pwr_irq_flag = false;
/*
* Since this register write may trigger a power irq, ensure
* all previous register writes are complete by this point.
--
2.7.4
Powered by blists - more mailing lists