summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorGenjian Zhang <zhanggenjian@kylinos.cn>2022-09-29 10:20:36 +0200
committerMike Snitzer <snitzer@kernel.org>2022-10-18 23:17:48 +0200
commit99f4f5bcb975527508eb7a5e3e34bdb91d576746 (patch)
treea0459103cca3e61fce0fdc3128bd96f9c7fc57d4 /drivers/md
parentdm verity: Add documentation for try_verify_in_tasklet option (diff)
downloadlinux-99f4f5bcb975527508eb7a5e3e34bdb91d576746.tar.xz
linux-99f4f5bcb975527508eb7a5e3e34bdb91d576746.zip
dm: remove unnecessary assignment statement in alloc_dev()
Fixes: 74fe6ba923949 ("dm: convert to blk_alloc_disk/blk_cleanup_disk") Signed-off-by: Genjian Zhang <zhanggenjian@kylinos.cn> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 7c35dea88ed1..95a1ee3d314e 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);