Skip to contentSkip to conversation

mmc: core: mmc_blk_rw_cmd_err - remove unused variable

mmc Applied Tomas Winkler 2 participants 2 messages Mar 9, 2017 – Mar 16, 2017 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

Fix compilation warning:

drivers/mmc/core/block.c:1563:24: warning: variable ‘mq_rq’ set but not used [-Wunused-but-set-variable] struct mmc_queue_req *mq_rq;

---
 drivers/mmc/core/block.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/mmc/core/block.c +0 -3
index 1621fa08e206..87f8091f936c 100644
@@ -1560,11 +1560,8 @@ static bool mmc_blk_rw_cmd_err(struct mmc_blk_data *md, struct mmc_card *card,
 			       struct mmc_blk_request *brq, struct request *req,
 			       bool old_req_pending)
 {
-	struct mmc_queue_req *mq_rq;
 	bool req_pending;
 
-	mq_rq = container_of(brq, struct mmc_queue_req, brq);
-
 	/*
 	 * If this is an SD card and we're writing, we can first
 	 * mark the known good sectors as ok.
Signature · 1 line
2.9.3
Applied
#1 lore raw
Quoted 6 lines · Tomas Winkler

Fix compilation warning:

drivers/mmc/core/block.c:1563:24: warning: variable ‘mq_rq’ set but not used [-Wunused-but-set-variable] struct mmc_queue_req *mq_rq;

Thanks, applied for fixes!

Kind regards
Uffe

Quoted 23 lines
---
 drivers/mmc/core/block.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/mmc/core/block.c +0 -4
index 1621fa08e206..87f8091f936c 100644
@@ -1560,11 +1560,8 @@ static bool mmc_blk_rw_cmd_err(struct mmc_blk_data *md, struct mmc_card *card,
                               struct mmc_blk_request *brq, struct request *req,
                               bool old_req_pending)
 {
-       struct mmc_queue_req *mq_rq;
        bool req_pending;
 
-       mq_rq = container_of(brq, struct mmc_queue_req, brq);
-
        /*
         * If this is an SD card and we're writing, we can first
         * mark the known good sectors as ok.
--

2.9.3