All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][next] ms_block: remove unused pointer 'set'
@ 2018-11-08 11:08 ` Colin King
  0 siblings, 0 replies; 4+ messages in thread
From: Colin King @ 2018-11-08 11:08 UTC (permalink / raw)
  To: Maxim Levitsky, Jens Axboe; +Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

Pointer 'set' is declared but not used, remove it. Cleans up warning:

warning: unused variable ‘set’ [-Wunused-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 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 ee0be66a9a03..82daccc9ea62 100644
--- a/drivers/memstick/core/ms_block.c
+++ b/drivers/memstick/core/ms_block.c
@@ -2104,7 +2104,6 @@ static const struct blk_mq_ops msb_mq_ops = {
 static int msb_init_disk(struct memstick_dev *card)
 {
 	struct msb_data *msb = memstick_get_drvdata(card);
-	struct blk_mq_tag_set *set = NULL;
 	int rc;
 	unsigned long capacity;
 
-- 
2.19.1


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

* [PATCH][next] ms_block: remove unused pointer 'set'
@ 2018-11-08 11:08 ` Colin King
  0 siblings, 0 replies; 4+ messages in thread
From: Colin King @ 2018-11-08 11:08 UTC (permalink / raw)
  To: Maxim Levitsky, Jens Axboe; +Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

Pointer 'set' is declared but not used, remove it. Cleans up warning:

warning: unused variable ‘set’ [-Wunused-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 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 ee0be66a9a03..82daccc9ea62 100644
--- a/drivers/memstick/core/ms_block.c
+++ b/drivers/memstick/core/ms_block.c
@@ -2104,7 +2104,6 @@ static const struct blk_mq_ops msb_mq_ops = {
 static int msb_init_disk(struct memstick_dev *card)
 {
 	struct msb_data *msb = memstick_get_drvdata(card);
-	struct blk_mq_tag_set *set = NULL;
 	int rc;
 	unsigned long capacity;
 
-- 
2.19.1

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

* Re: [PATCH][next] ms_block: remove unused pointer 'set'
  2018-11-08 11:08 ` Colin King
@ 2018-11-08 13:17   ` Jens Axboe
  -1 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2018-11-08 13:17 UTC (permalink / raw)
  To: Colin King, Maxim Levitsky; +Cc: kernel-janitors, linux-kernel

On 11/8/18 4:08 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Pointer 'set' is declared but not used, remove it. Cleans up warning:
> 
> warning: unused variable ‘set’ [-Wunused-variable]

Thanks, applied.

-- 
Jens Axboe


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

* Re: [PATCH][next] ms_block: remove unused pointer 'set'
@ 2018-11-08 13:17   ` Jens Axboe
  0 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2018-11-08 13:17 UTC (permalink / raw)
  To: Colin King, Maxim Levitsky; +Cc: kernel-janitors, linux-kernel

On 11/8/18 4:08 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Pointer 'set' is declared but not used, remove it. Cleans up warning:
> 
> warning: unused variable ‘set’ [-Wunused-variable]

Thanks, applied.

-- 
Jens Axboe

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

end of thread, other threads:[~2018-11-08 13:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-08 11:08 [PATCH][next] ms_block: remove unused pointer 'set' Colin King
2018-11-08 11:08 ` Colin King
2018-11-08 13:17 ` Jens Axboe
2018-11-08 13:17   ` 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.