[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210614060231.3965278-1-hch@lst.de>
Date: Mon, 14 Jun 2021 08:02:31 +0200
From: Christoph Hellwig <hch@....de>
To: axboe@...nel.dk
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] null_blk: remove an unused variable assignment in null_add_dev
Fix up the recent blk_alloc_disk conversion.
Signed-off-by: Christoph Hellwig <hch@....de>
---
drivers/block/null_blk/main.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_blk/main.c
index 3b320b005aa8..d734e9ee1546 100644
--- a/drivers/block/null_blk/main.c
+++ b/drivers/block/null_blk/main.c
@@ -1849,7 +1849,6 @@ static int null_add_dev(struct nullb_device *dev)
if (!null_setup_fault())
goto out_cleanup_tags;
- rv = -ENOMEM;
nullb->tag_set->timeout = 5 * HZ;
nullb->disk = blk_mq_alloc_disk(nullb->tag_set, nullb);
if (IS_ERR(nullb->disk)) {
--
2.30.2
Powered by blists - more mailing lists