Skip to content

Commit

Permalink
dm: remove unnecessary assignment statement in alloc_dev()
Browse files Browse the repository at this point in the history
[ Upstream commit 99f4f5b ]

Fixes: 74fe6ba ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Genjian Zhang authored and gregkh committed Oct 29, 2022
1 parent fa5a70b commit d9b4cfa
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/md/dm.c
Expand Up @@ -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);

Expand Down

0 comments on commit d9b4cfa

Please sign in to comment.