]> git.baikalelectronics.ru Git - kernel.git/commitdiff
null_blk: remove an unused variable assignment in null_add_dev
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Jun 2021 06:02:31 +0000 (08:02 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 21:34:04 +0000 (15:34 -0600)
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>
drivers/block/null_blk/main.c

index 3b320b005aa897a86cfa13ff5bcfd3fd3476c156..d734e9ee1546e6c7046aa31c88caac89adeaf752 100644 (file)
@@ -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)) {