[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220929082036.913110-1-zhanggenjian@kylinos.cn>
Date: Thu, 29 Sep 2022 16:20:36 +0800
From: Genjian <zhanggenjian123@...il.com>
To: agk@...hat.com, snitzer@...nel.org
Cc: dm-devel@...hat.com, linux-kernel@...r.kernel.org,
zhanggenjian123@...il.com, Genjian Zhang <zhanggenjian@...inos.cn>
Subject: [PATCH] dm: Remove unnecessary assignment statements in alloc_dev().
From: Genjian Zhang <zhanggenjian@...inos.cn>
Since there are related allocation and assignment operations before this,
the two are already equal, so this assignment statement is not needed.
Signed-off-by: Genjian Zhang <zhanggenjian@...inos.cn>
---
drivers/md/dm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 60549b65c799..b4a2cb5333fc 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -2065,7 +2065,6 @@ static struct mapped_device *alloc_dev(int minor)
md->disk->minors = 1;
md->disk->flags |= GENHD_FL_NO_PART;
md->disk->fops = &dm_blk_dops;
- md->disk->queue = md->queue;
md->disk->private_data = md;
sprintf(md->disk->disk_name, "dm-%d", minor);
--
2.25.1
Powered by blists - more mailing lists