diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2013-04-11 13:48:23 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2013-04-12 11:26:31 +0200 |
commit | 2e39392daf1de9c61052edc991f30bda352612c9 (patch) | |
tree | 0cb3c10361b478a8d36971fbc7a537bbe71dad65 /lib | |
parent | 4cce09dbdbf1fdb8e6ca985144fdeb181c3a480b (diff) | |
download | lvm2-2e39392daf1de9c61052edc991f30bda352612c9.tar.gz |
cleanup: remove unused lvl_idx
Diffstat (limited to 'lib')
-rw-r--r-- | lib/metadata/raid_manip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c index b1ada5cd1..43cf14e6d 100644 --- a/lib/metadata/raid_manip.c +++ b/lib/metadata/raid_manip.c @@ -1896,7 +1896,7 @@ try_again: int lv_raid_remove_missing(struct logical_volume *lv) { - uint32_t s, lvl_idx; + uint32_t s; struct lv_segment *seg = first_seg(lv); struct cmd_context *cmd = lv->vg->cmd; @@ -1913,7 +1913,7 @@ int lv_raid_remove_missing(struct logical_volume *lv) * FIXME: Make sure # of compromised components will not affect RAID */ - for (s = 0, lvl_idx = 0; s < seg->area_count; s++) { + for (s = 0; s < seg->area_count; s++) { if (!(seg_lv(seg, s)->status & PARTIAL_LV) && !(seg_metalv(seg, s)->status & PARTIAL_LV)) continue; |