Thread (16 messages) 16 messages, 3 authors, 2016-12-09
STALE3477d

[PATCH] mmc: sdhci-xenon: fix boolreturn.cocci warnings

From: kbuild test robot <hidden>
Date: 2016-12-09 18:27:53
Also in: linux-mmc

drivers/mmc/host/sdhci-xenon-phy.c:469:9-10: WARNING: return of 0/1 in function 'emmc_phy_slow_mode' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

CC: Hu Ziji <huziji@marvell.com>
Signed-off-by: Fengguang Wu <redacted>
---

 sdhci-xenon-phy.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/mmc/host/sdhci-xenon-phy.c
+++ b/drivers/mmc/host/sdhci-xenon-phy.c
@@ -466,11 +466,11 @@ static bool emmc_phy_slow_mode(struct sd
 
 	/* Skip temp stages from HS200 to HS400 */
 	if (temp_stage_hs200_to_hs400(host, priv))
-		return 0;
+		return false;
 
 	/* Skip temp stages from HS400 t0 HS200 */
 	if (temp_stage_hs400_to_h200(host, priv))
-		return 0;
+		return false;
 
 	reg = sdhci_readl(host, phy_regs->timing_adj);
 	/* Enable Slow Mode for SDIO in slower SDR mode */
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help