[PATCH] memstick: mspro_block: fix unused variable warning

From: Anders Roxell
Date: Mon May 14 2018 - 06:18:16 EST


When building mspro_block a warning pops up unused variable 'host',
drivers/memstick/core/mspro_block.c: In function âmspro_block_init_diskâ:
drivers/memstick/core/mspro_block.c:1173:24: warning: unused variable âhostâ [-Wunused-variable]
struct memstick_host *host = card->host;
^~~~

Removing the declaration of 'host' in function mspro_block_init_disk.

Signed-off-by: Anders Roxell <anders.roxell@xxxxxxxxxx>
---
drivers/memstick/core/mspro_block.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c
index a2fadc605750..5ee932631fae 100644
--- a/drivers/memstick/core/mspro_block.c
+++ b/drivers/memstick/core/mspro_block.c
@@ -1170,7 +1170,6 @@ static int mspro_block_init_card(struct memstick_dev *card)
static int mspro_block_init_disk(struct memstick_dev *card)
{
struct mspro_block_data *msb = memstick_get_drvdata(card);
- struct memstick_host *host = card->host;
struct mspro_devinfo *dev_info = NULL;
struct mspro_sys_info *sys_info = NULL;
struct mspro_sys_attr *s_attr = NULL;
--
2.17.0