mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
cleanup: remove unused lvl_idx
This commit is contained in:
parent
4cce09dbdb
commit
2e39392daf
@ -1896,7 +1896,7 @@ try_again:
|
|||||||
|
|
||||||
int lv_raid_remove_missing(struct logical_volume *lv)
|
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 lv_segment *seg = first_seg(lv);
|
||||||
struct cmd_context *cmd = lv->vg->cmd;
|
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
|
* 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) &&
|
if (!(seg_lv(seg, s)->status & PARTIAL_LV) &&
|
||||||
!(seg_metalv(seg, s)->status & PARTIAL_LV))
|
!(seg_metalv(seg, s)->status & PARTIAL_LV))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user