@@ -3007,7 +3007,6 @@ void mmc_unregister_pm_notifier(struct mmc_host *host)
*/
void mmc_init_context_info(struct mmc_host *host)
{
- host->context_info.is_new_req = false;
host->context_info.is_waiting_last_req = false;
}
@@ -55,7 +55,6 @@ static int mmc_queue_thread(void *d)
req = blk_fetch_request(q);
mq->asleep = false;
cntx->is_waiting_last_req = false;
- cntx->is_new_req = false;
if (!req) {
/*
* Dispatch queue is empty so set flags for
@@ -109,10 +108,6 @@ static void mmc_request_fn(struct request_queue *q)
cntx = &mq->card->host->context_info;
- if (cntx->is_waiting_last_req) {
- cntx->is_new_req = true;
- }
-
if (mq->asleep)
wake_up_process(mq->thread);
}
@@ -241,11 +241,9 @@ struct mmc_slot {
/**
* mmc_context_info - synchronization details for mmc context
- * @is_new_req wake up reason was new request
* @is_waiting_last_req mmc context waiting for single running request
*/
struct mmc_context_info {
- bool is_new_req;
bool is_waiting_last_req;
};
The host context member "is_new_req" is only assigned values, never checked. Delete it. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- ChangeLog v1->v5: - Rebasing on the "next" branch in the MMC tree. --- drivers/mmc/core/core.c | 1 - drivers/mmc/core/queue.c | 5 ----- include/linux/mmc/host.h | 2 -- 3 files changed, 8 deletions(-)