diff mbox

[mmc] mmc: core: mmc_blk_rw_cmd_err - remove unused variable

Message ID 20170309145821.8849-1-tomas.winkler@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Winkler, Tomas March 9, 2017, 2:58 p.m. UTC
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 <tomas.winkler@intel.com>
---
 drivers/mmc/core/block.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Ulf Hansson March 16, 2017, 2:46 p.m. UTC | #1
On 9 March 2017 at 15:58, Tomas Winkler <tomas.winkler@intel.com> wrote:
> 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 <tomas.winkler@intel.com>

Thanks, applied for fixes!

Kind regards
Uffe

> ---
>  drivers/mmc/core/block.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
> index 1621fa08e206..87f8091f936c 100644
> --- a/drivers/mmc/core/block.c
> +++ b/drivers/mmc/core/block.c
> @@ -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
>
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
index 1621fa08e206..87f8091f936c 100644
--- a/drivers/mmc/core/block.c
+++ b/drivers/mmc/core/block.c
@@ -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.