From patchwork Fri Dec 9 18:27:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 9468907 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 48A24607D8 for ; Fri, 9 Dec 2016 18:30:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D68D28678 for ; Fri, 9 Dec 2016 18:30:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 303D728681; Fri, 9 Dec 2016 18:30:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 25BBA28678 for ; Fri, 9 Dec 2016 18:30:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cFPv6-0007tl-Tt; Fri, 09 Dec 2016 18:29:20 +0000 Received: from mga06.intel.com ([134.134.136.31]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cFPup-0007Wz-R4 for linux-arm-kernel@lists.infradead.org; Fri, 09 Dec 2016 18:29:05 +0000 Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP; 09 Dec 2016 10:28:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,324,1477983600"; d="scan'208";a="38613609" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by orsmga004.jf.intel.com with ESMTP; 09 Dec 2016 10:28:38 -0800 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1cFPv5-000Lxj-Au; Sat, 10 Dec 2016 02:29:19 +0800 Date: Sat, 10 Dec 2016 02:27:53 +0800 From: kbuild test robot To: Gregory CLEMENT Subject: [PATCH] mmc: sdhci-xenon: fix boolreturn.cocci warnings Message-ID: <20161209182750.GA80755@lkp-hsx03.lkp.intel.com> References: <201612100213.2R0DRXrE%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161209_102904_019782_0657A23F X-CRM114-Status: UNSURE ( 8.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jimmy Xu , Andrew Lunn , Ulf Hansson , Hanna Hawa , Nadav Haklai , Ziji Hu , Victor Gu , Doug Jones , Jisheng Zhang , Yehuda Yitschak , "Wei\(SOCP\) Liu" , Kostya Porotchkin , Sebastian Hesselbarth , Jason Cooper , Ryan Gao , Gregory CLEMENT , Marcin Wojtas , linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , linux-mmc@vger.kernel.org, Adrian Hunter , kbuild-all@01.org, Wilson Ding Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 */