Skip to content

Commit

Permalink
mmc: core: mmc_blk_rw_cmd_err - remove unused variable
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Ulf Hansson <[email protected]>
  • Loading branch information
tomasbw authored and storulf committed Mar 16, 2017
1 parent 40ceda0 commit 8bcd37d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/mmc/core/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8bcd37d

Please sign in to comment.