]> sourceware.org Git - lvm2.git/commitdiff
raid: favour dm_list_first()
authorHeinz Mauelshagen <heinzm@redhat.com>
Thu, 30 Mar 2017 16:13:27 +0000 (18:13 +0200)
committerHeinz Mauelshagen <heinzm@redhat.com>
Thu, 30 Mar 2017 16:13:27 +0000 (18:13 +0200)
lib/metadata/raid_manip.c

index ed0f4c1049bcf0a76cecc0a890c4e2ab11517117..8e5b1a892ec4d340e658bec9050787c79c784666 100644 (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;
 
This page took 0.044637 seconds and 5 git commands to generate.