aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2017-11-30 05:54:24 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2017-12-11 12:47:25 +0100
commitaa95014445769f3ac204f85ff85efe11bbd0bc8c (patch)
treefa84641409308a01b105c237076493cc457d1ab7 /drivers
parent42f532da3a44843668dbacc1838a028b0a9b7373 (diff)
mmc: block: blk-mq: fix boolreturn.cocci warnings
drivers/mmc/core/block.c:2106:9-10: WARNING: return of 0/1 in function 'mmc_blk_status_error' 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 Fixes:7eb43d537166 ("mmc: block: blk-mq: Stop using legacy recovery") CC: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/core/block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
index bd7ead343500..ab384ba6cb37 100644
--- a/drivers/mmc/core/block.c
+++ b/drivers/mmc/core/block.c
@@ -2103,7 +2103,7 @@ static bool mmc_blk_status_error(struct request *req, u32 status)
u32 stop_err_bits;
if (mmc_host_is_spi(mq->card->host))
- return 0;
+ return false;
stop_err_bits = mmc_blk_stop_err_bits(brq);

Privacy Policy