Message ID | 20180514101756.2120-1-anders.roxell@linaro.org |
---|---|
State | New |
Headers | show |
Series | memstick: ms_block: fix unused variable warning | expand |
On 5/14/18 4:17 AM, Anders Roxell wrote: > 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; Thanks, but I already applied the fixup from Christoph. -- Jens Axboe
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;
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(-) -- 2.17.0