From: lkp@intel.com (kbuild test robot) Date: Sat, 10 Dec 2016 02:27:53 +0800 Subject: [PATCH] mmc: sdhci-xenon: fix boolreturn.cocci warnings In-Reply-To: References: <201612100213.2R0DRXrE%fengguang.wu@intel.com> Message-ID: <20161209182750.GA80755@lkp-hsx03.lkp.intel.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 Signed-off-by: Fengguang Wu --- 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 */