summaryrefslogtreecommitdiff
path: root/Incremental.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-11-28 13:30:23 +1100
committerNeilBrown <neilb@suse.de>2013-11-28 13:30:23 +1100
commit2e44767fc2e202da87f51d4c25b83791cdf40e03 (patch)
treebfb8df9b99efce6821810c7d3d7c2cc90416e8aa /Incremental.c
parent357ac1067835d1cdd5f80acc28501db0ffc64957 (diff)
Incremental: remove test that can never succeed.
Incremental_container never returns 1, so this test is pointless. It is a holdover from when we called "Incremental()" rather than "Incremental_container()" at this point. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Incremental.c')
-rw-r--r--Incremental.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Incremental.c b/Incremental.c
index 1bb3638f..68080957 100644
--- a/Incremental.c
+++ b/Incremental.c
@@ -480,11 +480,6 @@ int Incremental(char *devname, struct context *c,
if (!rv)
rv = Incremental_container(st, chosen_name, c, NULL);
map_unlock(&map);
- if (rv == 1)
- /* Don't fail the whole -I if a subarray didn't
- * have enough devices to start yet
- */
- rv = 0;
/* after spare is added, ping monitor for external metadata
* so that it can eg. try to rebuild degraded array */
if (st->ss->external)