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>
This commit is contained in:
parent
357ac10678
commit
2e44767fc2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue