[PATCH 3/6] mmc: sdhci-msm: use true,false for bool variable

From: zhengbin
Date: Tue Dec 24 2019 - 02:25:31 EST


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@xxxxxxxxxx>
Signed-off-by: zhengbin <zhengbin13@xxxxxxxxxx>
---
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