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

Commit 38e0d13b authored by Vijay Viswanath's avatar Vijay Viswanath
Browse files

mmc: core: Remove unused variable



Removed a local variable in mmc_start_req() which was used to store the
error encountered while starting a new data request. If an error is
encountered while starting a new request, the error
information is stored in the mrq. The error information stored in the
mrq is during error handling. So removing the unused variable.

Change-Id: Ifeedc91433230d5156d286bd332a85fb221188ac
Signed-off-by: default avatarVijay Viswanath <vviswana@codeaurora.org>
parent 20ae7a51
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1583,7 +1583,6 @@ struct mmc_async_req *mmc_start_req(struct mmc_host *host,
				    struct mmc_async_req *areq, int *error)
{
	int err = 0;
	int start_err = 0;
	struct mmc_async_req *data = host->areq;

	/* Prepare a new request */
@@ -1615,7 +1614,7 @@ struct mmc_async_req *mmc_start_req(struct mmc_host *host,
		trace_mmc_blk_rw_start(areq->mrq->cmd->opcode,
				       areq->mrq->cmd->arg,
				       areq->mrq->data);
		start_err = __mmc_start_data_req(host, areq->mrq);
		__mmc_start_data_req(host, areq->mrq);
	}

	if (host->areq)