Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f71774ac authored by Christian Lütke-Stetzkamp's avatar Christian Lütke-Stetzkamp Committed by Greg Kroah-Hartman
Browse files

staging: mt7621-mmc: Remove redundant check for card status



Current code checks the card status at the beginning of
msdc_ops_request. This is not necessary because mmc core always checks
the card status before calling this operation.

Signed-off-by: default avatarChristian Lütke-Stetzkamp <christian@lkamp.de>
Reviewed-by: default avatarNeilBrown <neil@brown.name>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eafda892
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -1718,20 +1718,6 @@ static void msdc_ops_request(struct mmc_host *mmc, struct mmc_request *mrq)

	WARN_ON(host->mrq);

	if (!is_card_present(host) || host->power_mode == MMC_POWER_OFF) {
		ERR_MSG("cmd<%d> card<%d> power<%d>", mrq->cmd->opcode, is_card_present(host), host->power_mode);
		mrq->cmd->error = -ENOMEDIUM;

#if 1
		mrq->done(mrq);         // call done directly.
#else
		mrq->cmd->retries = 0;  // please don't retry.
		mmc_request_done(mmc, mrq);
#endif

		return;
	}

	/* start to process */
	spin_lock(&host->lock);
#if 0 /* --- by chhung */