OSDN Git Service

ms_block: remove unused pointer 'set'
authorColin Ian King <colin.king@canonical.com>
Thu, 8 Nov 2018 11:08:09 +0000 (11:08 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2018 13:17:26 +0000 (06:17 -0700)
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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/memstick/core/ms_block.c

index ee0be66..82daccc 100644 (file)
@@ -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;