summaryrefslogtreecommitdiff
path: root/drivers/memstick/host
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-04-25 05:03:32 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2019-05-06 12:55:39 +0300
commite69ec21eff32693fd6815277e96479753ee39ad2 (patch)
treeb0d4efeb6f8ef39c362970229e76b79692fb8e12 /drivers/memstick/host
parent8e1943af2986db42bee2b8dddf49a36cdb2e9219 (diff)
downloadlinux-e69ec21eff32693fd6815277e96479753ee39ad2.tar.xz
memstick: tifm: remove set but not used variable 'data'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/memstick/host/tifm_ms.c: In function 'tifm_ms_issue_cmd': drivers/memstick/host/tifm_ms.c:259:17: warning: variable 'data' set but not used [-Wunused-but-set-variable] It's not used any more since commit 92b22d935fed ("tifm: fix the MemoryStick host fifo handling code") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/memstick/host')
-rw-r--r--drivers/memstick/host/tifm_ms.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/memstick/host/tifm_ms.c b/drivers/memstick/host/tifm_ms.c
index bed205849d02..2c8cad4afe18 100644
--- a/drivers/memstick/host/tifm_ms.c
+++ b/drivers/memstick/host/tifm_ms.c
@@ -254,7 +254,6 @@ static unsigned int tifm_ms_transfer_data(struct tifm_ms *host)
static int tifm_ms_issue_cmd(struct tifm_ms *host)
{
struct tifm_dev *sock = host->dev;
- unsigned char *data;
unsigned int data_len, cmd, sys_param;
host->cmd_flags = 0;
@@ -263,8 +262,6 @@ static int tifm_ms_issue_cmd(struct tifm_ms *host)
host->io_word = 0;
host->cmd_flags = 0;
- data = host->req->data;
-
host->use_dma = !no_dma;
if (host->req->long_data) {