From: NeilBrown Date: Mon, 22 Nov 2010 09:58:06 +0000 (+1100) Subject: Assemble: remove the skip variable. X-Git-Tag: mdadm-3.2~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d76c4d889427a04a9d901152cf5cd902071ea6be;p=thirdparty%2Fmdadm.git Assemble: remove the skip variable. it seems we don't need it any more Signed-off-by: NeilBrown --- diff --git a/Assemble.c b/Assemble.c index 21c3f131..fce8d344 100644 --- a/Assemble.c +++ b/Assemble.c @@ -367,7 +367,6 @@ int Assemble(struct supertype *st, char *mddev, if (tst->ss->container_content && tst->loaded_container) { - int skip = 0; /* tmpdev is a container. We need to be either * looking for a member, or auto-assembling */ @@ -431,9 +430,7 @@ int Assemble(struct supertype *st, char *mddev, fprintf(stderr, Name ": member %s in %s is already assembled\n", content->text_version, devname); - skip = 1; - } - if (skip) { + content = content->next; if (content) goto next_member;