mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-23 02:05:07 +03:00
Remove extra empty check
dm_list_splice handles empty list itself, no need to duplicate code.
This commit is contained in:
parent
c7b5b355f7
commit
493ea6330b
@ -4139,8 +4139,7 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, struct l
|
||||
lv->minor);
|
||||
}
|
||||
|
||||
if (!dm_list_empty(&lp->tags))
|
||||
dm_list_splice(&lv->tags, &lp->tags);
|
||||
dm_list_splice(&lv->tags, &lp->tags);
|
||||
|
||||
lp->region_size = adjusted_mirror_region_size(vg->extent_size,
|
||||
lp->extents,
|
||||
|
Loading…
x
Reference in New Issue
Block a user