Skip to content

Commit 9ca28c5

Browse files
ahunter6storulf
authored andcommitted
mmc: core: Remove unnecessary host claim
Callers already have the host claimed, so remove the unnecessary calls to mmc_claim_host() and mmc_release_host(). Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 1c87f73 commit 9ca28c5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/mmc/core/mmc_ops.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,6 @@ void mmc_start_bkops(struct mmc_card *card, bool from_exception)
977977
from_exception)
978978
return;
979979

980-
mmc_claim_host(card->host);
981980
if (card->ext_csd.raw_bkops_status >= EXT_CSD_BKOPS_LEVEL_2) {
982981
timeout = MMC_OPS_TIMEOUT_MS;
983982
use_busy_signal = true;
@@ -995,7 +994,7 @@ void mmc_start_bkops(struct mmc_card *card, bool from_exception)
995994
pr_warn("%s: Error %d starting bkops\n",
996995
mmc_hostname(card->host), err);
997996
mmc_retune_release(card->host);
998-
goto out;
997+
return;
999998
}
1000999

10011000
/*
@@ -1007,8 +1006,6 @@ void mmc_start_bkops(struct mmc_card *card, bool from_exception)
10071006
mmc_card_set_doing_bkops(card);
10081007
else
10091008
mmc_retune_release(card->host);
1010-
out:
1011-
mmc_release_host(card->host);
10121009
}
10131010

10141011
/*

0 commit comments

Comments
 (0)