All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] memstick: ms_block: fix unused variable warning
@ 2018-05-14 10:17 Anders Roxell
  2018-05-14 10:17 ` [PATCH] memstick: mspro_block: " Anders Roxell
  2018-05-14 14:36 ` [PATCH] memstick: ms_block: " Jens Axboe
  0 siblings, 2 replies; 8+ messages in thread
From: Anders Roxell @ 2018-05-14 10:17 UTC (permalink / raw)
  To: axboe, maximlevitsky; +Cc: linux-kernel, Anders Roxell

When building a warning pops up unused variable 'host'
drivers/memstick/core/ms_block.c: In function ‘msb_init_disk’:
drivers/memstick/core/ms_block.c:2097:24: warning: unused variable ‘host’ [-Wunused-variable]
  struct memstick_host *host = card->host;
                        ^~~~

Removing the declaration of 'host' in function msb_init_disk.

Fixes: 7c2d748e8476 ("memstick: don't call blk_queue_bounce_limit")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 drivers/memstick/core/ms_block.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/memstick/core/ms_block.c b/drivers/memstick/core/ms_block.c
index b2d025f42d14..a15181fa45f7 100644
--- a/drivers/memstick/core/ms_block.c
+++ b/drivers/memstick/core/ms_block.c
@@ -2094,7 +2094,6 @@ static const struct block_device_operations msb_bdops = {
 static int msb_init_disk(struct memstick_dev *card)
 {
 	struct msb_data *msb = memstick_get_drvdata(card);
-	struct memstick_host *host = card->host;
 	int rc;
 	unsigned long capacity;
 
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-05-17 16:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-14 10:17 [PATCH] memstick: ms_block: fix unused variable warning Anders Roxell
2018-05-14 10:17 ` [PATCH] memstick: mspro_block: " Anders Roxell
2018-05-14 10:52   ` [PATCH v2] " Anders Roxell
2018-05-17  1:40     ` kbuild test robot
2018-05-17 16:32     ` kbuild test robot
2018-05-14 13:17   ` [PATCH] " kbuild test robot
2018-05-14 13:18   ` kbuild test robot
2018-05-14 14:36 ` [PATCH] memstick: ms_block: " Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.