Message ID | 20161209182750.GA80755@lkp-hsx03.lkp.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- 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 */
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 <fengguang.wu@intel.com> --- sdhci-xenon-phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html