diff options
| author | Adrian Hunter <[email protected]> | 2017-09-22 12:36:50 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2017-10-30 10:45:49 +0000 |
| commit | 9ca28c5cd967e07e708a407eec59894e2e643670 (patch) | |
| tree | 5dc878b94f55a89a0cb3727a73391f480270f87d | |
| parent | mmc: block: Fix bug when removing RPMB chardev (diff) | |
| download | kernel-9ca28c5cd967e07e708a407eec59894e2e643670.tar.gz kernel-9ca28c5cd967e07e708a407eec59894e2e643670.zip | |
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 <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
| -rw-r--r-- | drivers/mmc/core/mmc_ops.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index 54686ca4bfb7..a6b0a232f24a 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c @@ -977,7 +977,6 @@ void mmc_start_bkops(struct mmc_card *card, bool from_exception) from_exception) return; - mmc_claim_host(card->host); if (card->ext_csd.raw_bkops_status >= EXT_CSD_BKOPS_LEVEL_2) { timeout = MMC_OPS_TIMEOUT_MS; use_busy_signal = true; @@ -995,7 +994,7 @@ void mmc_start_bkops(struct mmc_card *card, bool from_exception) pr_warn("%s: Error %d starting bkops\n", mmc_hostname(card->host), err); mmc_retune_release(card->host); - goto out; + return; } /* @@ -1007,8 +1006,6 @@ void mmc_start_bkops(struct mmc_card *card, bool from_exception) mmc_card_set_doing_bkops(card); else mmc_retune_release(card->host); -out: - mmc_release_host(card->host); } /* |
