Message ID | 20170201124800.13865-10-linus.walleij@linaro.org |
---|---|
State | New |
Headers | show |
Series | Further MMC core/block cleanups | expand |
diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index 92f7772ca56d..c49c90dba839 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c @@ -788,7 +788,7 @@ static int mmc_sd_num_wr_blocks(struct mmc_card *card, u32 *written_blocks) if (err) return err; if (!mmc_host_is_spi(card->host) && !(cmd.resp[0] & R1_APP_CMD)) - return err; + return 0; memset(&cmd, 0, sizeof(struct mmc_command));
mmc_sd_num_wr_blocks() has this construction: if (err) return err; if (some_other_stuff_not_touching_err) return err; It follows from logical deduction that we can just return 0 in the latter case. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- drivers/mmc/core/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.3 -- 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