linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] null_blk: remove an unused variable assignment in null_add_dev
@ 2021-06-14  6:02 Christoph Hellwig
  2021-06-15 21:56 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2021-06-14  6:02 UTC (permalink / raw)
  To: axboe; +Cc: linux-kernel

Fix up the recent blk_alloc_disk conversion.

Signed-off-by: Christoph Hellwig <hch@lst.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] null_blk: remove an unused variable assignment in null_add_dev
  2021-06-14  6:02 [PATCH] null_blk: remove an unused variable assignment in null_add_dev Christoph Hellwig
@ 2021-06-15 21:56 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2021-06-15 21:56 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-kernel

On 6/14/21 12:02 AM, Christoph Hellwig wrote:
> Fix up the recent blk_alloc_disk conversion.

Applied, thanks.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-15 21:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-14  6:02 [PATCH] null_blk: remove an unused variable assignment in null_add_dev Christoph Hellwig
2021-06-15 21:56 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).