summaryrefslogtreecommitdiffstats
path: root/drivers/block/null_blk
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-06-14 08:02:31 +0200
committerJens Axboe <axboe@kernel.dk>2021-06-30 23:34:04 +0200
commit2f43dbf3a7423ba14d827965d37fb6a56aa90009 (patch)
tree0b079e562bd37a05d3bc21e61cc789f7ed92699d /drivers/block/null_blk
parentmtip32xx: use blk_mq_alloc_disk and blk_cleanup_disk (diff)
downloadlinux-2f43dbf3a7423ba14d827965d37fb6a56aa90009.tar.xz
linux-2f43dbf3a7423ba14d827965d37fb6a56aa90009.zip
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@lst.de> Link: https://lore.kernel.org/r/20210614060231.3965278-1-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/null_blk')
-rw-r--r--drivers/block/null_blk/main.c1
1 files changed, 0 insertions, 1 deletions
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)) {