Skip to contentSkip to conversation

null_blk: remove an unused variable assignment in null_add_dev

PATCH Applied Christoph Hellwig 2 participants 2 messages Jun 14, 2021 – Jun 15, 2021 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 null_blk: remove an unused variable assignment in null_add_dev

Fix up the recent blk_alloc_disk conversion.

---
 drivers/block/null_blk/main.c | 1 -
 1 file changed, 1 deletion(-)
drivers/block/null_blk/main.c +0 -1
index 3b320b005aa8..d734e9ee1546 100644
@@ -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)) {
Signature · 1 line
2.30.2
maintainer Applied
#1 lore raw
Quoted 1 line · Christoph Hellwig

Fix up the recent blk_alloc_disk conversion.

Applied, thanks.

Signature · 1 line
Jens Axboe