mmc: core: mmc_blk_rw_cmd_err - remove unused variable
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;
Signed-off-by Tomas Winkler <[email protected]>
--- drivers/mmc/core/block.c | 3 --- 1 file changed, 3 deletions(-)
drivers/mmc/core/block.c +0 -3
@@ -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
Ulf Hansson
AppliedQuoted 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] structmmc_queue_req*mq_rq;Signed-off-by Tomas Winkler <[email protected]>
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@@ -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