diff options
Diffstat (limited to 'drivers/mmc/core/block.c')
| -rw-r--r-- | drivers/mmc/core/block.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index 8499b56a15a8..c5367e2c8487 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c @@ -1370,6 +1370,7 @@ static void mmc_blk_cqe_complete_rq(struct mmc_queue *mq, struct request *req)  	struct mmc_request *mrq = &mqrq->brq.mrq;  	struct request_queue *q = req->q;  	struct mmc_host *host = mq->card->host; +	enum mmc_issue_type issue_type = mmc_issue_type(mq, req);  	unsigned long flags;  	bool put_card;  	int err; @@ -1399,7 +1400,7 @@ static void mmc_blk_cqe_complete_rq(struct mmc_queue *mq, struct request *req)  	spin_lock_irqsave(&mq->lock, flags); -	mq->in_flight[mmc_issue_type(mq, req)] -= 1; +	mq->in_flight[issue_type] -= 1;  	put_card = (mmc_tot_in_flight(mq) == 0); |