1
0
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:
Heinz Mauelshagen 2017-03-30 18:13:27 +02:00
parent 2d75ef3b05
commit c34ab29ec6

View File

@ -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;