aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core
diff options
context:
space:
mode:
authorShawn Lin <shawn.lin@rock-chips.com>2017-07-06 16:26:55 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2017-08-30 14:01:28 +0200
commit292876ef567518cbfc45b446298458c8b9ce7cb7 (patch)
treee88ab5b7e85dddee8570904427c743e4019471d7 /drivers/mmc/core
parentmmc: mxcmmc: check the return value of mxcmci_finish_data (diff)
downloadlinux-dev-292876ef567518cbfc45b446298458c8b9ce7cb7.tar.xz
linux-dev-292876ef567518cbfc45b446298458c8b9ce7cb7.zip
mmc: block: remove unused struct mmc_card *card
It was never used and introduced a long standing compile warning: drivers/mmc/core/block.c: In function 'power_ro_lock_store': drivers/mmc/core/block.c:191:19: warning: variable 'card' set but not used [-Wunused-but-set-variable] Remove it to fix the warning. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r--drivers/mmc/core/block.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
index 80d1ec693d2d..b8fa62cbb129 100644
--- a/drivers/mmc/core/block.c
+++ b/drivers/mmc/core/block.c
@@ -188,7 +188,6 @@ static ssize_t power_ro_lock_store(struct device *dev,
{
int ret;
struct mmc_blk_data *md, *part_md;
- struct mmc_card *card;
struct mmc_queue *mq;
struct request *req;
unsigned long set;
@@ -201,7 +200,6 @@ static ssize_t power_ro_lock_store(struct device *dev,
md = mmc_blk_get(dev_to_disk(dev));
mq = &md->queue;
- card = md->queue.card;
/* Dispatch locking to the block layer */
req = blk_get_request(mq->queue, REQ_OP_DRV_OUT, __GFP_RECLAIM);