memstick: tifm: remove set but not used variable 'data'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 25 Apr 2019 02:03:32 +0000 (02:03 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 6 May 2019 09:55:39 +0000 (11:55 +0200)
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>
drivers/memstick/host/tifm_ms.c

index bed205849d027020e260dfa4b68ac3fba8aaa9ed..2c8cad4afe1865c1864be005c26f978f61c96322 100644 (file)
@@ -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) {