projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c24aa7b
)
mmc: owl-mmc: use true and false for bool variables
author
Zou Wei
<zou_wei@huawei.com>
Mon, 9 Nov 2020 02:25:06 +0000
(10:25 +0800)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 16 Nov 2020 11:44:31 +0000
(12:44 +0100)
Fix coccicheck warnings:
./owl-mmc.c:524:2-18: WARNING: Assignment of 0/1 to bool variable
./owl-mmc.c:528:2-18: WARNING: Assignment of 0/1 to bool variable
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link:
https://lore.kernel.org/r/1604888706-63429-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/owl-mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/owl-mmc.c
b/drivers/mmc/host/owl-mmc.c
index
82d2bad
..
53b8158
100644
(file)
--- a/
drivers/mmc/host/owl-mmc.c
+++ b/
drivers/mmc/host/owl-mmc.c
@@
-521,11
+521,11
@@
static void owl_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
/* Enable DDR mode if requested */
if (ios->timing == MMC_TIMING_UHS_DDR50) {
- owl_host->ddr_50 =
1
;
+ owl_host->ddr_50 =
true
;
owl_mmc_update_reg(owl_host->base + OWL_REG_SD_EN,
OWL_SD_EN_DDREN, true);
} else {
- owl_host->ddr_50 =
0
;
+ owl_host->ddr_50 =
false
;
}
}