summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijay Viswanath <vviswana@codeaurora.org>2017-04-06 11:14:25 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-07-03 02:10:42 -0700
commitc77576994e0aab9a9d7197e405fccf54afdeef76 (patch)
tree64274e5ea214467045a946bcf1b9141c9e38f0bc
parentbc399a65c4e048d98b6304272e32402bfca59dda (diff)
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: Vijay Viswanath <vviswana@codeaurora.org>
-rw-r--r--drivers/mmc/core/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 2cb0ea03a338..79b5b3504ccd 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1735,7 +1735,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 */
@@ -1784,7 +1783,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)