mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
dm: remove unnecessary assignment statement in alloc_dev()
Fixes: 74fe6ba923
("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>
This commit is contained in:
parent
dc3efedf9f
commit
99f4f5bcb9
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user