mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
raid: favour dm_list_first()
This commit is contained in:
parent
2d75ef3b05
commit
c34ab29ec6
@ -3091,8 +3091,7 @@ int lv_raid_split(struct logical_volume *lv, int yes, const char *split_name,
|
||||
}
|
||||
|
||||
/* Get first item */
|
||||
dm_list_iterate_items(lvl, &data_list)
|
||||
break;
|
||||
lvl = (struct lv_list *) dm_list_first(&data_list);
|
||||
|
||||
lvl->lv->name = split_name;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user