]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - config.c
super1
[thirdparty/mdadm.git] / config.c
index f3a749c07de1c9bea07c68c9bdae3a90ccc434a6..7383e193549f42b89c0af269b39ebfa5e45347c7 100644 (file)
--- a/config.c
+++ b/config.c
@@ -332,12 +332,10 @@ void arrayline(char *line)
                        /* style of metadata on the devices. */
                        int i;
                        
-                       for(i=0; superlist[i]; i++) 
-                               if (superlist[i]->match_metadata_desc(w+9)) {
-                                       mis.ss = superlist[i];
-                                       break;
-                               }
-                       if (!mis.ss)
+                       for(i=0; superlist[i] && !mis.st; i++)
+                               mis.st = superlist[i]->match_metadata_desc(w+9);
+
+                       if (!mis.st)
                                fprintf(stderr, Name ": metadata format %s unknown, ignored.\n", w+9);
                } else if (strncasecmp(w, "auto=", 5) == 0 ) {
                        /* whether to create device special files as needed */